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
Sometimes we need to manipulate the operation of a function according to the need, i.e changing some arguments to default etc. Predefining a function to… Read More
Given an obfuscated code that generates the map of India, explain its working.The following code when executed generates the map of India –     The… Read More
Generating Random Unweighted Trees Since this is a tree,  the test data generation plan is such that no cycle gets formed. The number of edges… Read More
The java.lang.System.exit() method exits current program by terminating running Java virtual machine. This method takes a status code. A non-zero value of status code is… Read More
The introduction of array class from C++11 has offered a better alternative for C-style arrays. The advantages of array class over C-style array are :-  … Read More
A surpasser of an element of an array is a greater element to its right, therefore x[j] is a surpasser of x[i] if i <… Read More
In general or more specifically in competitive programming there are many instances where we need to convert a number to a string or string to… Read More
What is a tuple? A tuple is an object that can hold a number of elements. The elements can be of different data types. The… Read More
Set 1 (Random Numbers, Arrays and Matrices) Generating Random Characters // A C++ Program to generate test cases for // random characters #include<bits/stdc++.h> using namespace… Read More
A regular expression (sometimes called a rational expression) is a sequence of characters that define a search pattern, mainly for use in pattern matching with… Read More
From C++11 onwards, some new and interesting algorithms are added in STL of C++. These algorithms operate on an array and are useful in saving… Read More
Problem: Given 2 process i and j, you need to write a program that can guarantee mutual exclusion between the two without any additional hardware… Read More
The test cases are an extremely important part of any “Software/Project Testing Process”. Hence this Set will be very important for all aspiring software developers.… Read More
Given two strings X and Y, print the shortest string that has both X and Y as subsequences. If multiple shortest supersequence exists, print any… Read More
We have been trying to organize content of geeksforgeeks. We added below pages for this purpose. Algorithms and Data Structures: Algorithms Data Structures Languages: C… Read More

Start Your Coding Journey Now!