# Category Archives: Algorithms

Given an array of nums of length N and an integer M, the task is to find the minimum difference between two elements of nums… Read More
Given an array arr[] consisting of N integers, the task is to check if it is possible to divide the entire array into two arrays… Read More
Given string ‘s’, the task is to divide a given string s into multiple substrings, with each substring containing only unique characters. This means that… Read More
Given an array nums of length N which contains two types of numbers, one which has the value zero, the second which is a positive… Read More
Two players X and Y are playing a game in which there are pots of gold arranged in a line, each containing some gold coins.… Read More
Algorithms are the set of rules to be followed in calculations or other problem-solving operations. It is considered one of the most important subjects considered… Read More
Unstable sorting algorithm can be defined as sorting algorithm in which the order of objects with the same values in the sorted array are not… Read More
Given an integer N which corresponds to a N x N grid. The score you can get from a cell at the ith row and… Read More
Complexity analysis is defined as a technique to characterise the time taken by an algorithm with respect to input size (independent from the machine, language… Read More
Given an array A[] with N elements, the task is to find the total number of pairs possible with A[i] ^ A[j] = i ^… Read More
Given N buckets and the infinite number of balls. The maximum capacity of each bucket is given in an array capacity[], the task is to… Read More
Given an array A[] of length N and integer F, the task is to find the number of subsequences where the average of the sum… Read More
Given an integer val. Split the given integer in two integers val1 and val2 such that val1 + val2 = val and the difference between… Read More
Given an array arr[] of integers and an integer K, the task is to find the minimum number of operations required to make every Kth… Read More
Given an array of positive integers arr[]. The task is to Find the minimum positive value which cannot be formed using OR operator on any… Read More