Given a list with numbers from 1 to n missing exactly one value, find the missing one efficiently.
Constraints
Example
>>> find_missing([3, 1, 4]) 2 >>> find_missing([1]) 2 >>> find_missing([2, 3, 4]) 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints