Skip to content

Commit 58bbb81

Browse files
[UPDATED] TheAlgorithms#9066 rat_in_maze
1 parent c8c901c commit 58bbb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: backtracking/rat_in_maze.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ def solve_maze(maze: list[list[int]]) -> bool:
6767
No solution exists!
6868
False
6969
"""
70-
# We need to create solution object to save path.
7170
size = len(maze)
7271
source_row = 0
7372
source_column = 0
7473
destination_row = size - 1
7574
destination_column = size - 1
75+
# We need to create solution object to save path.
7676
solutions = [[0 for _ in range(size)] for _ in range(size)]
7777
solved = run_maze(
7878
maze, source_row, source_column, destination_row, destination_column, solutions

0 commit comments

Comments
 (0)