Given an array of integers `arr` and an integer `k`, find the first missing positive integer such that each of the first `k` positive integers appear exactly once, and `arr` contains some, possibly none, of these positive integers.
Explanation: First missing positive integer after 1 to 5
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak