Last updated 5 years ago
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.
I: [0, 1, 3] O: 2