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
Machine Learning is that tool of the current times that can potentially draw meaningful business insights from the available raw data. This data can either… Read More
Being a programmer, you might have solved a lot of programming challenges. In programming space and time complexity matters a lot when we need to… Read More
Given an integer array A[] of size N, the task is to find the prime numbers just less and just greater than A[i] (for all… Read More
Given a doubly-linked list containing N nodes, where each node is at most K away from its target position in the list, the task is… Read More
Given a binary string S of size N, the task is to find the maximum number of operations that can be performed on S, by… Read More
Given a binary string S of size N, the task is to find the number of groups of 1s only in the string S. Examples:… Read More
Given a number N and a digit K, the task is to calculate the number of ways to form a number with the maximum number… Read More
Given a positive integer K and a string S consisting of N characters, the task is to maximize the sum of the frequencies of exactly… Read More
Given two positive integers A and B, the task is to calculate the minimum number of operations required such that Bitwise OR of A and… Read More
Given two strings S1 and S2, the task is to check whether they are the same or not without using string library functions. Examples: Input:… Read More
Given an integer N, the task is to fill a matrix M of size NxN, starting from the main diagonal and then alternating between the… Read More
Given two arrays A and B of sizes N and M respectively, the task is to calculate the XOR sum of bitwise ANDs of all… Read More
A tree is non-linear and a hierarchical data structure consisting of a collection of nodes such that each node of the tree stores a value,… Read More
An array in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using… Read More
Short-Circuit Evaluation: Short-circuiting is a programming concept by which the compiler skips the execution or evaluation of some sub-expressions in a logical expression. The compiler… Read More