1060. Missing Element in Sorted Array

Given a sorted array of distinct positive integers nums, return the k-th missing positive integer in the sequence that starts immediately after nums[0].

A value belongs to that sequence when it is greater than nums[0] and does not appear in nums. The sequence is read in increasing order, so the first missing value after nums[0] is the smallest absent integer above it.

Examples
Input: [[4,7,9,10],1]
Output: 5
Hints
Related Problems

1060. Missing Element in Sorted Array

Given a sorted array of distinct positive integers `nums`, return the `k`-th missing positive integer in the sequence that starts immediately after `nums[0]`.