β back to unit
Easy
# sorting easy
The Countdown Check
Rocket launches need a proper countdown β every number lower than (or equal to) the one before. π
You get the control room's list of nums. Print liftoff if it never goes UP, otherwise abort.
Example:
Input: nums = [10, 9, 8, 8, 3]
Output: liftoff
It never goes up (10β₯9β₯8β₯8β₯3) β print liftoff.
π‘ need a hint?
sort-countdown-check.pyπ given lines are locked β write your code in between
loading...