Problem 1483. Number of paths on a grid
Solution Stats
Problem Comments
-
5 Comments
It would be more elegant to define the solution for the 1x1 case as 1 rather than 0.
agree, but will leave as so, so as to not affect submitted solutions.
I disagree with the base case. A 1x1 matrix has 1 path. And, the empty matrix has no path (zero).
The first test case has been changed from 0 to 1 without rescoring past solutions.
Very interesting problem when you think about it.
Solution Comments
Show commentsProblem Recent Solvers71
Suggested Problems
-
Find the largest value in the 3D matrix
1476 Solvers
-
Implement simple rotation cypher
1050 Solvers
-
Volume of a sphere given its surface area
144 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
554 Solvers
-
Return fibonacci sequence do not use loop and condition
519 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!