more test cases needed
unless I am misunderstanding, y_correct should be 2 for test #2 (e.g. path 1-2-1)
Yes. I corrected it. Thanks :)
3098 Solvers
201 Solvers
471 Solvers
868 Solvers
Find the dimensions of a matrix
376 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!