A list holds the numbers 0..n with exactly one missing (in any order). Write missing_number(nums) that returns the missing one.
missing_number([3, 0, 1]) → 2
missing_number([0]) → 1
Submit runs 5 tests, including hidden edge cases.
Run your code to see the output here.