# Category Archives: Algorithms

Given a range [L, R), the task is to count the numbers that remain unchanged when rotated 180 degrees clockwise. Examples: Input: L = 0,… Read More
Given two binary strings str1 and str2 each of length N, the task is to split the strings in such a way that the sum… Read More
Given a binary matrix of size N x M, you enter the matrix at cell (0, 0) in the left to the right direction. Whenever… Read More
Given a binary string str of length N and a positive integer X, the task is to maximize the count of X length subarrays consisting… Read More
Given a positive integer N, the task is to find the sum upto Nth term of the series:  33 – 23, 53 – 43, 73… Read More
Given a binary array nums of length N, The task is to find all possible partitions in given array such that sum of count of… Read More
Given an undirected graph with N nodes and two vertices S & T, the task is to check if a cycle between these two vertices… Read More
Given an undirected graph with N nodes and E edges, followed by E edge connections. The task is to find the count of nodes with… Read More
Given two positive integers A and B, perform one of the following operations only once to make the numbers equal.  Change the ith bit of… Read More
Given an array arr[] consisting of N positive integers, the task is to find the suffix factorials of a suffix sum array of the given… Read More
Given an array arr[] of distinct Integers, find the pair with maximum sum such that both elements of the pair are not adjacent in the… Read More
The binary search algorithm is used in many coding problems, and it is usually not very obvious at first sight. However, there is certainly an… Read More
Given a binary string str of length N, the task is to find the number of setbits in the bitwise OR of all the K… Read More
Given an integer N, consider an array having elements in the range [0, N-1] such that the maximum Bitwise XOR of all adjacent pairs is… Read More
Given a car race track of length N units. where each car moves with a speed of 1 unit per second. Given two arrays left[]… Read More