Skip to content

Commit 8ff2d65

Browse files
Update backtracking/rat_in_maze.py
Co-authored-by: dlesnoff <[email protected]>
1 parent 58bbb81 commit 8ff2d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtracking/rat_in_maze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def solve_maze(maze: list[list[int]]) -> bool:
1212
This method navigates through a maze represented as an n by n matrix,
1313
starting from a specified source cell (default: top-left corner) and
1414
aiming to reach a destination cell (default: bottom-right corner).
15-
The maze consists of walls (0s) and open paths (1s).
15+
The maze consists of walls (1s) and open paths (0s).
1616
By providing custom row and column values, the source and destination
1717
cells can be adjusted.
1818
>>> maze = [[0, 1, 0, 1, 1],

0 commit comments

Comments
 (0)