Problem Statement: Given a sorted array of size N, search for a given element in the array. Examples: Example 1:
Continue readingTag: Binary Search
Allocate Minimum Number of Pages
Problem Statement: Given an array of integers A of size N and an integer B. The College library has N
Continue readingNth Root of a Number using Binary Search
Problem Statement: Given two numbers N and M, find the Nth root of M. The nth root of a number
Continue readingSearch Element in a Rotated Sorted Array
Problem Statement: There is an integer array nums sorted in ascending order (with distinct values). Given the array nums after
Continue readingSearch Single Element in a sorted array
Problem Statement: Given a sorted array of N integers, where every element except one appears exactly twice and one element
Continue reading4 Sum | Find Quads that add up to a target value
Problem Statement: Given an array of N integers, your task is to find unique quads that add up to give
Continue readingSearch in a sorted 2D matrix
Problem Statement: Given an m*n 2D matrix and an integer, write a program to find if the given integer exists
Continue reading