Skip to content

Commit 9a2a6a0

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 76e78d9 + 6444e97 commit 9a2a6a0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lessons/n-queens-puzzle.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
2-
You have an N by N board. Write a function that returns the number of possible arrangements of the board
3-
where N queens can be placed on the board without threatening each other,
4-
i.e. no two queens share the same row, column, or diagonal.
2+
You have an N by N board. Write a function that returns the number of possible arrangements of the board where
3+
N queens can be placed on the board without threatening each other,i.e. no two queens share the same row, column, or diagonal.
54
"""
65

76
def nQueens(n, board=[]):
@@ -30,4 +29,4 @@ def isValid(board):
3029

3130
if __name__ == "__main__":
3231
for n in range(10):
33-
print(nQueens(n))
32+
print(nQueens(n))

0 commit comments

Comments
 (0)