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
Given a N X N matrix (M) filled with 1 , 0 , 2 , 3 . Find the minimum numbers of moves needed to… Read More
Given an array, find maximum sum of smallest and second smallest elements chosen from all possible subarrays. More formally, if we write all (nC2) subarrays… Read More
Given binary array, find count of maximum number of consecutive 1’s present in the array.Examples :   Input : arr[] = {1, 1, 0, 0, 1,… Read More
Given a 2D array, the task is to print the 2D in alternate manner (First row from left to right, then from right to left,… Read More
Given an array of distinct elements. The task is to find triplets in the array whose sum is zero. Examples : Attention reader! Don’t stop learning… Read More
In Competitive Programming, most of the time we need to enter input for checking our code manually. But it would become cumbersome if we have… Read More
Given a string str. The task is to count the words having the same length as str and each letter at the i-th position is… Read More
We are given four segments as a pair of coordinates of their end points. We need to tell whether those four line segments make a… Read More
You are given two strings of equal length, you have to find the Hamming Distance between these string. Where the Hamming distance between two strings of… Read More
Given many intervals as ranges and our position. We need to find minimum distance to travel to reach such a point which covers all the… Read More
Given a N X N matrix Mat[N][N] of positive integers. There are only three possible moves from a cell (i, j)   (i+1, j) (i+1, j-1)… Read More
Given an array of distinct n integers. The task is to check whether reversing one sub-array make the array sorted or not. If the array… Read More
Problem Statement : Given a graph which represents a flow network where every edge has a capacity. Also given two vertices source ‘s’ and sink ‘t’… Read More
  Shortest job first (SJF) or shortest job next, is a scheduling policy that selects the waiting process with the smallest execution time to execute… Read More
Given three coordinates (x, y), which are the midpoint of the sides of the triangle. The task is to find the coordinates of the triangle. … Read More

Start Your Coding Journey Now!