leetle

Daily challenge for 2025-07-04

185. Check if Array is Sorted

Write a function solve that takes a list of integers and returns True if the array is sorted in non-decreasing order, and False otherwise.

Example:
Input: [1, 2, 3, 4, 5]
Output: True

Example 2:
Input: [1, 3, 2, 4]
Output: False

Run this challenge interactively in Python or JavaScript when the app loads.