Given a sorted integer array nums and an integer n, return the minimum number of elements that must be added to the array such that every number in the range nums.
Constraints:
nums.length
nums[i]
nums is sorted in ascending order.
n
Given a sorted integer array nums and an integer n, return the minimum number of elements that must be added to the array such that every number in the range nums.
Constraints:
nums.length
nums[i]
nums is sorted in ascending order.
n