Category: binary search
Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from this array. Example …
A binary matrix means that all elements are 0 or 1. For each individual row of the matrix, this row is sorted in non-decreasing order. Given a row-sorted binary …
Given the array nums, for each nums find out how many numbers in the array are smaller than it. That is, for each nums you have to count the …
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result of …
Given a sorted array A of unique numbers, find the K-th missing number starting from the leftmost number of the array. Example 1: Input: A = , K = …