Problem 109. Check if sorted
Check if sorted.
Example:
Input x = [1 2 0] Output y is 0
Solution Stats
Problem Comments
-
10 Comments
Show
7 older comments
Gan Wee Ting
on 20 Dec 2016
nice
Jack Knoll
on 6 Apr 2017
hehe
Georgios Stoumpis
on 13 Jun 2017
The solution "y = issorted(x);" with a metric of 12 is not the leading solution. "Fair Play" is something unknown to cheaters!
Solution Comments
Show commentsProblem Recent Solvers4412
Suggested Problems
-
Find state names that start with the letter N
1284 Solvers
-
Matrix indexing with two vectors of indices
731 Solvers
-
Determine the number of odd integers in a vector
754 Solvers
-
384 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
942 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!