FunctionRacerProblemsRace

Is Sorted

EasyNumPyPython

Return True if nums never goes down from one item to the next (each item is at least as big as the one before it), otherwise False. A single item counts as sorted.

Example 1

nums [1,2,2,5]
returns true

It never decreases.

Example 2

nums [3,1,2]
returns false

It drops from 3 to 1.

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