Skip to content

Category Archives: Algorithms

Given a string S and a list lis[] of N number of words, the task is to find every possible (N+1)th word from string S… Read More
Pre-Internship Drive: Microsoft internship was one of the best things that happened to me during my college days. It came during that time of my… Read More
Given an array A[] of size N. An array has to be created using the given array considering the following conditions. If the index is… Read More
Given an integer array arr[] of size N that is sorted in increasing order and an integer K, Return an array with power of K… Read More
Given a positive integer N, the task is to find all pairs of integers (i, j) from the range [1, N] in increasing order of… Read More
Given N tasks and N people who can work on them. Each task requires A[i] (0 <= i <= N-1) units of work to complete… Read More
Given binary strings S1 and S2 of length N, the task is to check if S2 can be made equal to S1 by performing the… Read More
Given a binary matrix Mat[][] of size N*N, the task is to find the minimum number of flips to be performed such that the matrix… Read More
Given three integers X, Y, and Z. the task is to find the minimum distance between any two multiples of the given integers. Note: Common… Read More
Given a binary array a[] or size N and an integer K, the task is to find the longest subarray consisting of only 1s or… Read More
Given an array of size N. Consider all the subarrays starting at each index from [0, N – 1]. Determine the length of the smallest… Read More
Given the number of pages in N different books and M students. Every student is assigned to read some books that can be consecutive or… Read More
Given an integer N denoting the size of an array and two arrays containing Bitwise AND and Bitwise OR of adjacent elements of the array… Read More
Given a target string S consisting of lowercase alphabets, the task is to make this string by performing some operation on an empty string such… Read More
Given an array Arr[] of N integers and an integer K, the task is to find if it is possible to make the count of… Read More

Start Your Coding Journey Now!