1539. Kth Missing Positive Number
Problem Statement
Given an array arr
of positive integers sorted in a strictly increasing order, and an integer k
.
Return the kth
positive integer that is missing from this array.
Example 1:
Example 2:
Constraints:
1 <= arr.length <= 1000
1 <= arr[i] <= 1000
1 <= k <= 1000
arr[i] < arr[j]
for1 <= i < j <= arr.length
Intuition
Links
Video Links
Approach 1:
Approach 2:
Approach 3:
Approach 4:
Similar Problems
Previous1011. Capacity To Ship Packages Within D Days / Book Allocation ProblemNext1552. Magnetic Force Between Two Balls / Aggressive Cows
Last updated