Easy
Quiz
#268 Missing Number
APPROACH
Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.
1 of 4
What is the optimal approach for this problem?
#268 Missing Number
APPROACH
Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.
What is the optimal approach for this problem?