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.
Test 7,10 and 11 are fake, you have to correct these problem
In Test 7 : 1->2->4->5->6->40->41->42. So a path exists to go through the structure, even if we don't have a global increase in the cell.
At the beginning this problem was just a test to practice recursive algorithms. I am fed up with always factorial and fibonacci examples. Maybe some others problems will follow.
How to find the position of an element in a vector without using the find function
2482 Solvers
192 Solvers
388 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
273 Solvers
538 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!