Given an array arr[] of size N and a positive integer K, the task is to find the smallest positive integer such that the sum… Read More
Category Archives: Searching
Given a numeric string S representing a positive decimal integer, the task is to find the minimum number of positive Deci-Binary numbers required to obtain… Read More
Given an N-Ary tree, the task is to print all root to leaf paths of the given N-ary Tree. Examples: Input: … Read More
Given a binary string S, the task is to convert the given string S to its lexicographic maximum form by reversing substrings having an even… Read More
Given a binary string S of length N, the task is to count the minimum number substrings of S that is required to be reversed… Read More
Given two binary strings A and B of length N, the task is to check if the string A can be converted to B by… Read More
Given binary string str of length N, the task is to find the minimum number of characters required to be deleted from the given binary… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the maximum number of pairs having sum K… Read More
Given an array arr[] of size N, the task is to find indices of array elements whose removal makes the sum of odd and even… Read More
Given an array arr[] of size N and an integer K, the task is to find the count of distinct pairs in the array whose… Read More
Given two arrays, arr[] and brr[] of size N and M respectively, the task is to find the count of pairs (arr[i], brr[j]) such that… Read More
Given an array arr[] consisting of N integers, the task is to sort the array in non-increasing order by minimum number of anti-clockwise rotations. If… Read More
Given two strings X and Y of length N, the task is to check if both the strings can be made equal by reversing any… Read More