Inelegant Python
See https://www.geeksforgeeks.org/find-the-smallest-positive-number-missing-from-an-unsorted-array/ This seems to be a popular coding interview problem.
The Python code shown on the site seems almost maliciously misleading.
The full problem is this:
You are given an unsorted array with both positive and negative elements. You have to find the smallest positive …more ...