Problem 42797. Find the path through the cell
A list of cells is given.
Return true if the elements of the list increase monotonically (each element is strictly larger than the previous). Return false otherwise.
For example : If list={1 2 3 4 5} => the answer is YES (1->2->3->4->5)
If list={[1 2] 4 [4 5] 6} => the answer is YES (1(or 2)->4->5->6)
But if list={[1 2] 0 [4 5] 6} => the answer is NO (1 or 2 are >0)
Easy ?
And a list like ... {[10 1] [2 3] [4 40] [1 1 2 2 2 5] 6 40 [1:41] [1:42]} ?
Good luck !
Solution Stats
Problem Comments
-
2 Comments
How about adding a test suite where some of the cell entries are 2-D?
Most of the solutions will not be affected by this update.
Solution Comments
Show commentsProblem Recent Solvers45
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5788 Solvers
-
Make an awesome ramp for a tiny motorcycle stuntman
743 Solvers
-
Find the largest value in the 3D matrix
1644 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
588 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2120 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!