Given an array nums containing n distinct numbers in the range [0, n], return the one number in the range that is missing from the array.
Example
nums = [3, 0, 1] => 2
nums = [0, 1] => 2
nums = [9,6,4,2,3,5,7,0,1] => 8
function MissingNumber(nums: int[]) -> int
Found a bug? Or annoyed about something in the language? Tell us.