This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Jonathan
on 10 Jan 2020
The first test case is incorrect. The null path (starting and ending at the same place) is a solution. The 1x1 case should have 1 solution.
Suggested Problems
-
7725 Solvers
-
2352 Solvers
-
Least common multiple of many numbers
242 Solvers
-
Sum all integers from 1 to 2^n
15875 Solvers
-
611 Solvers
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!