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 an array arr[] of N elements, the task is to concatenate it twice, i.e. create an array of size 2*N by appending the copy… Read More
Given an array arr[] containing integers. The task is to find the largest positive integer x missing from the array such that min(arr[]) < x… Read More
Given an array arr[]. The task is to minimize the cost of reducing the array with a given operation. In one operation choose two elements… Read More
Given an array arr[], the task is to find the count of elements in the given array such that there exists an element strictly smaller… Read More
Given an array arr[]. The task is to count elements in the array that appears only once and it’s consecutive next (arr[i]+1) and prev (arr[I]… Read More
Given an integer N, the task is to find all N digit integers with sequential digits Examples: Input: N = 4Output: {1234, 2345, 3456, 4567,… Read More
Given an array arr[]. The task is to check whether it is a mountain array or not. A mountain array is an array of length… Read More
Given a linked list lis of length N, the task is to determine the maximum distance between two consecutive peaks of the given linked list.… Read More
Given an array arr[] of size N, the task is to find the last remaining element of the array after consecutively removing the 1st and… Read More
Given string str, the task is to find the frequency of all digits (0-9) in a string created by concatenating the ASCII values of each… Read More
Given a square matrix M[][] of size N*N, the task is to reduce that matrix into a matrix of size N-1 * N-1 using the… Read More
Given two arrays A[] and B[] of size N each, the task is to minimize A[i] + B[j] such that j ≥ i. Examples: Input:… Read More
Given two arrays A and B each of size N, the task is to check if the sequencing of both the arrays is the same… Read More
As we all are aware today each business is looking forward to growing its reach by going online. In fact, online presence is playing a… Read More