Ezvor

1060. Missing Element in Sorted Array

MediumArray Preparing judge… LeetCode
ArrayBinary Search

Hints

Hint 1
First define a function f(x) that counts the number of missing elements until x.
Hint 2
Then use binary search with the given function f(x) to find the kth missing element.