Skip to content

Commit d80c1bf

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

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

backtracking/all_n_queens.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -90,21 +90,9 @@ def printboard(board: list[list[int]]) -> None:
9090
print("The total no. of solutions are :", len(solution))
9191

9292

93-
94-
95-
96-
97-
98-
9993
# Implementation using depth first search
10094

10195

102-
103-
104-
105-
106-
107-
10896
r"""
10997
11098
To solve this problem we will use simple math. First we know the queen can move in all
@@ -257,25 +245,9 @@ def n_queens_solution(n: int) -> None:
257245
n_queens_solution(4)
258246

259247

260-
261-
262-
263-
264-
265-
266-
267-
268248
# Implementation of n queens in sudoku problem
269249

270250

271-
272-
273-
274-
275-
276-
277-
278-
279251
"""
280252
Given a partially filled 9×9 2D array, the objective is to fill a 9×9
281253
square grid with digits numbered 1 to 9, so that every row, column, and
@@ -408,7 +380,3 @@ def print_solution(grid: Matrix) -> None:
408380
print_solution(solution)
409381
else:
410382
print("Cannot find a solution.")
411-
412-
413-
414-

0 commit comments

Comments
 (0)