Skip to content

Category Archives: Algorithms

 Given two arrays arrA[] and arrB[] containing N integers each. Perform the following operation any number of times (possibly zero): Select any index i (0… Read More
Given an array Arr[] of size N and an integer K, the task is to find the length of the shortest subsequence having sum exactly… Read More
Given an array A[] of length N and an integer K, the task is to maximize the value of expression [i.j – K.(Ai | Aj)]… Read More
Given an array task[] of size N denoting amount of work to be done for each task, the problem is to find the minimum amount… Read More
Given a head and a tail of a doubly linked list containing 0s and 1s, the task is to sort the Doubly linked list without… Read More
Given N sized binary array A[] containing all 0’s initially. The task is to find the final count of 1’s after flipping the bits at… Read More
Given a range [L, R] and an integer K, find all the groups in the given range having at least K consecutive composite integers.  … Read More
Given two integers L and R, and an array arr[] containing single digit integers, the task is to find all the integers in the range… Read More
Given a string S of length N. The string consists only of letters ‘F’ and ‘B’. The task is to generate a sequence performing some… Read More
Given an array arr[] of size N. Find the minimum sum of the array after performing given operations any number of times: Select two different… Read More
Given an array arr[] consisting of N positive integers. In one operation any number of the array can be decremented by 1. The task is… Read More
Given two strings, S and T where S is a normal string and T is a compressed string, the task is to determine if the… Read More
Round 1( Technical Interview 1): It was one hr long, conducted on Bar Raiser. Starts with an introduction then he asked two coding questions –… Read More
Given a binary matrix mat[][]. The task is to find the maximum 1’s that can be obtained after flipping all the elements of exactly one… Read More
Given an array A = [A0, A1, A2, . . ., AN-1]. Perform the following operation: Total count of indices with value same as their… Read More

Start Your Coding Journey Now!