Guide the rat from start to goal, avoiding walls, using backtracking.
Constraints
Example
>>> count_paths([[0, 0, 0], [0, 1, 0], [0, 0, 0]]) 2 >>> count_paths([[0, 1], [0, 0]]) 1 >>> count_paths([[1, 0], [0, 0]]) 0 >>> count_paths([[0, 0], [0, 0]]) 2
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints