# Category Archives: Algorithms

Given two arrays arr[] containing N integers and a mask[] of an odd size. The task is to replace every array element with the valueâ€¦ Read More
Given an integer capacity the maximum number of the processes handled by a CPU at any given time and a 2-D array request[][] is given,â€¦ Read More
Given an array arr[] of positive numbers. The task is to check if there exists any subset of any size such that after multiplying eachâ€¦ Read More
Given a binary string str. The task is to find the size of the set(contains unique substrings) of substrings such that if there is aâ€¦ Read More
Given an array of positive integer arr[], and a number K. the task is to maximize the sum of the array by replacing any Kâ€¦ Read More
Given an integer N and three N x N matrices X[][], Y[][], and Z[][], the task is to calculate the minimum cost required to reachâ€¦ Read More
Given an array arr[] of N positive numbers and an integer M. The task is to maximize the value of M by adding array elementsâ€¦ Read More
Given an array arr[] of size N and an integer K, the task is to find all the indices in the given array having atâ€¦ Read More
Given two points P1(x1, y1) and P2(x2, y2) of a matrix, the task is to find the minimum cost to reach P2 from P1 when:â€¦ Read More
Given a matrix of dimension N*M, the task is to maximize the total number of occupied cells in the given matrix such that they followâ€¦ Read More
A signed integer is an integer with a positive ‘+’ or negative sign ‘-‘ associated with it. Since the computer only understands binary, it isâ€¦ Read More
Given a positive integer n, the task is to find the sum of series  8/10 + 8/100 + 8/1000 + 8/10000. . . till Nthâ€¦ Read More
A pair is a container that stores two values mapped to each other, and a vector containing multiple numbers of such pairs is called aâ€¦ Read More
Given that Concentric circle of radii 1,2,3,4……….N cm are drawn. The interior of the smallest circle is colored white and angular regions are colored alternatelyâ€¦ Read More
Given an array arr[] of length N (1â‰¤ arr[i] â‰¤ N) and an integer K. The task is to find the largest median of anyâ€¦ Read More