LC: 1060. Missing Element in Sorted Array
https://leetcode.com/problems/missing-element-in-sorted-array/
Input: nums = [4,7,9,10], k = 1
Output: 5
Explanation: The first missing number is 5.Input: nums = [4,7,9,10], k = 3
Output: 8
Explanation: The missing numbers are [5,6,8,...], hence the third missing number is 8.Input: nums = [1,2,4], k = 3
Output: 6
Explanation: The missing numbers are [3,5,6,7,...], hence the third missing number is 6.Last updated