Skip to content

Commit aa3bddc

Browse files
cclaussgithub-actions
authored andcommitted
Fix line break after binary operator (TheAlgorithms#2119)
* Fix line break after binary operator * fixup! Format Python code with psf/black push Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 8aa7bd7 commit aa3bddc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: backtracking/rat_in_maze.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ def run_maze(maze, i, j, solutions):
9797
solutions[i][j] = 1
9898

9999
# check for directions
100-
if (run_maze(maze, i + 1, j, solutions) or
101-
run_maze(maze, i, j + 1, solutions) or
102-
run_maze(maze, i - 1, j, solutions) or
103-
run_maze(maze, i, j - 1, solutions)):
100+
if (
101+
run_maze(maze, i + 1, j, solutions)
102+
or run_maze(maze, i, j + 1, solutions)
103+
or run_maze(maze, i - 1, j, solutions)
104+
or run_maze(maze, i, j - 1, solutions)
105+
):
104106
return True
105107

106108
solutions[i][j] = 0

0 commit comments

Comments
 (0)