Menu
Coddy logo textTech

Find the Missing Number

Lesson 2 of 3 in Coddy's Interview Coding Challenges - Pack VIII course.

challenge icon

Challenge

Medium

You 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
}

All lessons in Interview Coding Challenges - Pack VIII

1Challenges

Reverse a StringFind the Missing NumberLongest Substring