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 :)
1328 Solvers
Replace NaNs with the number that appears to its left in the row.
2022 Solvers
339 Solvers
120 Solvers
227 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!