Problem
Given an integer arraynums which is sorted in ascending order and all of its elements are unique and given also an integer k, return the kth missing number starting from the leftmost number of the array.
Examples
Constraints
- 1 <= nums.length <= 5 * 10^4
- 1 <= nums[i] <= 10^7
- nums is sorted in ascending order, and all the elements are unique.
- 1 <= k <= 10^8
O(log(n))) solution?