10 XP challenge

Check a List Is Nondecreasing

easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve

Task
Your mission

Return true if numbers is in nondecreasing order: every item after the first is at least its predecessor. Empty and single-item lists return true. numbers contains 0 to 30 integers from -100 to 100.

Examples

InputReturn
numbers = [1,1,3]true
numbers = [1,3,2]false

Your code

Write your answer inside Solution, then use return to send it back.

Try examples runs the public examples. Check my code checks your full answer and saves your completion.