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 inO(n) time and uses constant extra space.
Solution
Last updated
Given an unsorted integer array, find the smallest missing positive integer.
Example 1:
Example 2:
Example 3:
Note:
Your algorithm should run inO(n) time and uses constant extra space.
Last updated