FunctionRacerProblemsRace

Missing Numbers

EasyNumPyPython

Every value in nums is a whole number from 0 to n - 1 (repeats are possible). Return a sorted list of the numbers from 0 to n - 1 that do not appear in nums. Return an empty list if none are missing.

Example 1

nums [0,2,2,5]
n 6
returns [1,3,4]

The numbers 1, 3 and 4 never appear.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems