1p3a Experience · Mar 2026

First Missing Positive

Interview Experience

First Missing Positive Given an unsorted integer array nums, return the smallest positive integer that does not appear in nums. Your solution must run in O(n) time and use O(1) extra space.

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Arrays