Skip to content

Commit b3bd3e6

Browse files
committed
Queens solution
1 parent e26cf03 commit b3bd3e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/queens.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,9 @@ def queens_without_collisions(queens_positions=[]):
2525
Input = ["(2,1)", "(5,3)", "(6,3)", "(8,4)", "(3,4)", "(1,8)", "(7,7)", "(5,8)"]
2626
Output = "(5,3)"
2727
assert queens_without_collisions(Input) == Output
28+
29+
Input = ["(4,1)", "(7,2)", "(3,3)", "(8,4)", "(2,5)", "(5,6)", "(1,7)", "(6,8)"]
30+
Output = "True"
31+
assert queens_without_collisions(Input) == Output
32+
33+
print("OK!")

0 commit comments

Comments
 (0)