Given an array arr[] consisting of N distinct positive integers, the task is to repeatedly find the minimum peak element from the given array and… Read More

# Category Archives: Searching

Given an array arr[] sorted in decreasing order, and an integer X, the task is to check if X is present in the given array… Read More

Given an array, arr[] consisting of N positive integers, the task is to make the array non-decreasing by swapping pairs (arr[i], arr[j]) such that i… Read More

Given two integers A, B which are any two terms of an Arithmetic Progression series, and an integer N, the task is to to construct… Read More

Given a binary matrix, mat[][] of size M * N, the task is to count the number of 1s from the given binary matrix whose… Read More

Given two strings str1 and str2, the task is to count the minimum number of operations of the following three types on one of the… Read More

Given a matrix mat[][] of size M * N, the task is to find all matrix elements which are minimum in their respective row and… Read More

Given a string S representing a sentence and another string word, the task is to find the word from S which has the string word… Read More

Given an n-ary tree T, the task is to find a node whose removal minimizes the maximum size of all forests(connected components) generated. Examples: Input: … Read More

Given an array arr[], where each element represents the maximum number of steps that can be made forward from that element, the task is to… Read More

Given an array arr[] consisting of N integers, the task is to find the length of the longest increasing absolute even subsequence. An increasing absolute… Read More

Given a binary string S, the task is to find the minimum number of operations of flipping at most two non-adjacent characters from the binary… Read More