Given an unsorted integer array, return the smallest positive integer not present. Your algorithm must run in O(n) time and O(1) extra space.
Input: one line of space-separated integers. Output: the smallest missing positive.
1 2 0
3
3 4 -1 1
2
7 8 9 11 12
1
Run your code against the sample tests, or Submit to run the full suite.