Log in
← All problems

The missing number

mediumLists20 XP

nums holds all the whole numbers from 0 to n except one, in any order (so it has n items). Return the missing number.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.