isSorted()

by Ricardo Fernández Serrata

Version 2 (June 6, 2021)

Download (1 downloads)

Returns 2 if the input is sorted in ascending order, 1 if descending, 3 if all of above, 0 if not sorted. It's guaranteed to halt if an invalid input (ls) is provided

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.