Missing Number
Given an array `nums` containing n distinct numbers drawn from the range 0..n, return the single number in that range that is missing.
Examples
in: nums = [3,0,1]
out: 2
0,1,3 present; 2 missing
Constraints
- 1 <= n <= 10^4
- values are distinct and in 0..n
Hints