← Back to all problems
Easy

Kth Missing Positive Number

Updated Feb 24, 2026

Problem

Return the k-th missing positive integer.

Constraints

1 <= arr.length <= 1000

Examples

Example 1

Input: {"arr": [2, 3, 4, 7, 11], "k": 5}
Output: 9

Function Signature

def findKthPositive(self, arr: list[int], k: int) -> int

How to Submit

Implement a Solution class with a findKthPositive method.

Your method will be called with the input parameters and should return the answer.