Your question is Kth Missing Number in Series. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Cimpress Technology processes sorted numeric series for product and fulfillment workflows. Given a strictly increasing array of positive integers with some values missing from the sequence of all positive integers, return the kth missing positive integer.
The array contains only observed values. Missing values before the first element and between or after observed values all count. Use an efficient algorithm that avoids scanning every missing value when the array is large.
Implement find_kth_missing(nums, k).
nums, a strictly increasing list of positive integers, and k, a positive integer.kth positive integer that does not appear in nums, returned as an integer.def find_kth_missing(nums, k):