Goldman SachsCoding·60 minMembers
First Missing Positive
Members only
Find the smallest positive integer missing from an unsorted array, in O(n) time and O(1) extra space. The cyclic-sort trick is the expected solution.
SWE
array
hard
Frequency
Single report
Last asked
2025-06-09
Stage
onsite-coding
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
