Asked 3/27/2025, 1:32:58 PM
Modified 3/27/2025, 1:32:58 PM
@leonov
You are given an array containing n distinct numbers taken from 0, 1, 2, ..., n. Find the missing number.
n
0, 1, 2, ..., n
Example:
Input: [3, 0, 1] Output: 2