Check if a list is sorted in ascending order.
MediumProblem Statement
Check if a list is sorted in ascending order.
Sample Input
[1, 2, 3, 4, 5]
Sample Output
true
Limits
Time: 2s · Memory: 256 MB
Check if a list is sorted in ascending order.
[1, 2, 3, 4, 5]
true
Time: 2s · Memory: 256 MB