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

# Tag Archives: Binary Search

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 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

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

Given N number of envelopes, as {W, H} pair, where W as the width and H as the height. One envelope can fit into another… 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 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