Skip to content
Gblog Must Do Coding Questions for Product Based Companies
As the placement season is back, GeeksforGeeks is here to help you crack the interview. We have selected some most commonly asked and MUST DO… Read More
In C, when we pass an array to a function say fun(), it is always treated as a pointer by fun(). Below example demonstrates the… Read More
I was recently interviewed for SDE 2 position at OlaCabs. Round 1 (around 1 hour) Design and implement a logging library. Preferred language was Java.… Read More
Why is Quick Sort preferred for arrays? Below are recursive and iterative implementations of Quick Sort and Merge Sort for arrays. Recursive Quick Sort for… Read More
Hope you liked my previous post “Top 25 Interview Questions”. Here comes the next 10. 1) Design discussion on elevator. Hint: Ask questions related to… Read More
Recently I gave interview in Synopsis for the position of R&D Engineer. These were the questions asked : 1. Round 1 : Telephonic Round       … Read More
  An array in C/C++ or be it in any programming language is a collection of similar data items stored at contiguous memory locations and… Read More
Given a stream of characters (characters are received one by one), write a function that prints ‘Yes’ if a character makes the complete string palindrome,… Read More
Hello, I recently attended an interview at Flipkart. There were four rounds: Round 1: I was given a problem statement and I had to write… Read More
Please refer below post before reading about AVL tree handling of duplicates.How to handle duplicates in Binary Search Tree?This is to augment AVL tree node… Read More
In a Binary Search Tree (BST), all keys in left subtree of a key must be smaller and all keys in right subtree must be… Read More
In C, it is possible to have array of all types except following. 1) void. 2) functions. For example, below program throws compiler error int… Read More
Recently I am interviewed for Amazon SDE-1 position for Bangalore. There are 3 F2F rounds followed by a telephonic round. As it was a drive,… Read More
What happens if there is a comment in header file name? Parsing of `#include’ is slightly special because comments are not recognized within the ”.… Read More
Given a dictionary that contains mapping of employee and his manager as a number of (employee, manager) pairs like below.  { "A", "C" }, {… Read More
Image a situation where we want to use or print a long long string in C or C++, how to do this? In C/C++, we… Read More