Skip to content

Commit 86900e9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2677377 commit 86900e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backtracking/n_queens.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def is_safe(board: list[list[int]], row: int, column: int) -> bool:
4040
and all(
4141
board[i][j] != 1 for i, j in zip(range(row, -1, -1), range(column, -1, -1))
4242
)
43-
and all(board[i][j] != 1 for i, j in zip(range(row, -1, -1), [column] * (row + 1)) )
43+
and all(
44+
board[i][j] != 1 for i, j in zip(range(row, -1, -1), [column] * (row + 1))
45+
)
4446
)
4547

4648

0 commit comments

Comments
 (0)