Skip to content
Gblog Blogathon 2021 – Write From Home Contest By GeeksforGeeks
Full form of PHP is______ My Personal Notes arrow_drop_up Save
Eulerian Path is a path in graph that visits every edge exactly once. Eulerian Circuit is an Eulerian Path which starts and ends on the… Read More
Given two binary trees, check if the first tree is subtree of the second one. A subtree of a tree T is a tree S… Read More
It doesn’t look possible to reverse a simple singly linked list in less than O(n). A simple singly linked list can only be reversed in… Read More
I had my amazon interview few days back in my campus. First Round: First round was a simple round. It had 20 MCQ questions on… Read More
I recently encountered with a question in an interview at e-commerce company. The interviewer asked the following question:There is BST given with root node with… Read More
Compiler and Interpreter are two different ways to translate a program from programming or scripting language to machine language. A compiler takes entire program and… Read More
Given a number n, write a function that generates and prints all binary numbers with decimal values from 1 to n.  Examples:  Input: n =… Read More
Given a radius of a circle, draw the circle without using floating point arithmetic.Following program uses a simple concept. Let the radius of the circle… Read More
Predict the output of the following C program.  C #include<stdio.h> int main() {     float x = 0.1;     if (x == 0.1)         printf("IF");     else if (x… Read More
Given a string, find the second most frequent character in it. Expected time complexity is O(n) where n is the length of the input string.Examples: … Read More
Given an array of strings, find if the given strings can be chained to form a circle. A string X can be put before another… Read More
Given a sorted dictionary (array of words) of an alien language, find order of characters in the language. Examples:   Input: words[] = {"baa", "abcd", "abca",… Read More
Output of following program? #include<stdio.h> int main() {     float x = 0.1;     if ( x == 0.1 )         printf("IF");     else if (x == 0.1f)         printf("ELSE… Read More
Consider the following C program, which variable has the longest scope? int a; int main() {    int b;    // ..    // .. } int c;… Read More
final keyword is used in different contexts. First of all, final is a non-access modifier applicable only to a variable, a method or a class.Following… Read More