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
It was the evening of 29th of March 2016 that I came across my recent favorite – FBI v/s Apple Case… It was resolved! Well,… Read More
Generating test cases for array programs can be a cumbersome process. But the generate and generate_n functions in the STL (Standard Template Library), come handy… Read More
I appeared for lybrate.com summer internship recruitment process.There were a total of 3 interviews: Round 1: (Telephonic) Q1:First the interviewer talked to me about a… Read More
Time, Speed and Distance (popularly known as TSD) is an important topic for written round of placements for any company.  Distance = Speed x Time… Read More
In competitive programming, it is important to read input as fast as possible so we save valuable time. You must have seen various problem statements… Read More
A vector, once declared, has all its values initialized to zero. Following is an example code to demonstrate the same.Take a step-up from those "Hello… Read More
system() is used to invoke an operating system command from a C/C++ program. int system(const char *command); Note: stdlib.h or cstdlib needs to be included… Read More
How to write a utility program that lists all contents of directory irrespective of Operating System. Most of the C/C++ compilers, define macros which can… Read More
    So you think you can code? Well that’s great to know… The world definitely needs more geeks and nerds like you and me… But,… Read More
Prerequisite : Tail Call Elimination In QuickSort, partition function is in-place, but we need extra space for recursive function calls. A simple implementation of QuickSort… Read More
Two friends A and B decided to work together and fill a pool of capacity 1000 liters. Using a bucket each, A fills at the… Read More
Two pipes A and B work alternatively with a third pipe C to fill a swimming pool. Working alone, A, B and C require 10,… Read More
Three pipes A, B and C were opened to fill a tank. Working alone, A, B and C require 10, 15 and 20 hours respectively.… Read More

Start Your Coding Journey Now!