Skip to content

Commit 4252ecb

Browse files
Update matrix/count_paths.py
Co-authored-by: Chris O <[email protected]>
1 parent 173d05c commit 4252ecb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

matrix/count_paths.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def dfs(grid: "list[list[int]]", row: int, col: int, visit: set) -> int:
2424
"""
2525
Recursive Backtracking Depth First Search Algorithm
2626
27-
Starting from top left of a matrix, count the number of paths that can reach the bottom right of a matrix.
27+
Starting from top left of a matrix, count the number of
28+
paths that can reach the bottom right of a matrix.
2829
1 represents a block (inaccessible)
2930
0 represents a valid space (accessible)
3031

0 commit comments

Comments
 (0)