Return 1 if the input is sorted from highest to lowest, 0 if not.
Example:
1:7 -> 0 [7 5 2] -> 1
Solution Stats
Problem Comments
3 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers1635
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6860 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15821 Solvers
-
12877 Solvers
-
Longest run of consecutive numbers
6800 Solvers
-
647 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
umm... why is issorted not working? :<
Please correct the test case.
@Rahul Gulia, the test suite is indeed correct, read the question properly