41. First Missing Positive
Given an unsorted integer array, find the smallest missing positive integer.
Example 1:
Example 2:
Example 3:
Note:
Your algorithm should run in O(n) time and uses constant extra space.
Last updated
Was this helpful?
Given an unsorted integer array, find the smallest missing positive integer.
Example 1:
Example 2:
Example 3:
Note:
Your algorithm should run in O(n) time and uses constant extra space.
Last updated
Was this helpful?