Find the Missing Number
Lesson 2 of 3 in Coddy's Interview Coding Challenges - Pack VIII course.
Challenge
MediumYou are given an array containing n distinct numbers taken from 0, 1, 2, ..., n, except for one number that is missing. Write a function named findMissingNumber to find and return the missing number.
Try it yourself
int findMissingNumber(int* nums, int numsSize) {
// Write code here
}