#binary-search
Read more stories on Hashnode
Articles with this tag
Problem Given a row wise sorted matrix of size R*C where R and C are always odd, find the median of the matrix. (link) Example 1: Input: R = 3, C =...
Problem A peak element in a 2D grid is an element that is strictly greater than all of its adjacent neighbors to the left, right, top, and...
Problem Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following...
Problem You are given an m x n integer matrix matrix with the following two properties: Each row is sorted in non-decreasing order. The first...
Problem Given a boolean 2D array, consisting of only 1's and 0's, where each row is sorted. Find the 0-based index of the first row that has the...
Problem Given two sorted arrays arr1 and arr2 of size N and M respectively and an element K. The task is to find the element that would be at the kth...