Skip to content
Gblog Geeks Summer Carnival – The Biggest Coding Festival is Back!
The opening breeze of summer has already blown – and like always, it has come up with a lot of positive and fun vibes. Some… 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. // C++ program for displaying… 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
Three pipes A, B and C were opened to fill a cistern. Working alone, A, B and C require 12, 15 and 20 minutes respectively.… Read More
Working alone, two pipes A and B require 9 hours and 6.25 hours more respectively to fill a pool than if they were working together.… Read More
Three pipes A, B and C are connected to a tank. Working alone, they require 10 hours, 20 hours and 30 hours respectively. After some… Read More
Three pipes A, B and C were opened to fill a cistern. Working alone, A, B and C require 12, 15 and 20 minutes respectively.After… Read More