Problem 128. Sorted highest to lowest?
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
Jakub Galecki
on 27 Jul 2016
umm... why is issorted not working? :<
Rahul Gulia
on 9 Oct 2021
Please correct the test case.
Dyuman Joshi
on 29 Oct 2021
@Rahul Gulia, the test suite is indeed correct, read the question properly
Solution Comments
Show commentsProblem Recent Solvers1552
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1820 Solvers
-
1211 Solvers
-
Flip the main diagonal of a matrix
806 Solvers
-
Duplicate each element of a vector.
605 Solvers
-
Generate N equally spaced intervals between -L and L
865 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!