Skip to content

Tag Archives: Binary Search

Given two integers N and K, denoting the number of operations allowed and the number that needs to be obtained after performing N operations respectively.… Read More
Given an array arr[] of size N and an array range[], the task is to check if the sum of the subarray {range[0], .. ,… Read More
What is the binary search algorithm? Binary Search Algorithm is used to find a certain value of x for which a certain defined function f(x) needs… Read More
Given three numbers a, b, and c that forms a monotonically increasing function of the form a*x2 + b*x + c and two number A… Read More
Given two arrays A[] and B[] of equal length, the task is to find the Bitwise XOR of the pairwise sum of the given two… Read More
Given an integer array arr of length N and an integer K, the task is to find the number of array elements to be replaced… Read More
Given an array arr[] consisting of N integers and an integer D, the task is to find the least integer T such that the entire… Read More
Given a number N, the task is to write C program to check if the given number is perfect cube or not. Examples: Input: N… Read More
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and… Read More
Given an array arr[] of length N, the task is to find the median of the differences of all pairs of the array elements. Example:… Read More
Searching Algorithms are designed to check for an element or retrieve an element from any data structure where it is stored. Based on the type… Read More
Given a sorted array of characters arr[] and a character K, the task is to find the character with nearest smaller ASCII value than K… Read More
Given an array A[] consisting of N integers and an integer K, the task is to find the length of the smallest subarray with sum… Read More
Given a string str, the task is to find the minimum length of substrings such that all the sub strings of that length from str… Read More