We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3999abf commit b8e7a4cCopy full SHA for b8e7a4c
backtracking/knight_tour.py
@@ -79,7 +79,7 @@ def open_knight_tour(n: int) -> list[list[int]]:
79
>>> open_knight_tour(2)
80
Traceback (most recent call last):
81
...
82
- ValueError: Open Kight Tour cannot be performed on a board of size 2
+ ValueError: Open Knight Tour cannot be performed on a board of size 2
83
"""
84
85
board = [[0 for i in range(n)] for j in range(n)]
@@ -91,7 +91,7 @@ def open_knight_tour(n: int) -> list[list[int]]:
91
return board
92
board[i][j] = 0
93
94
- msg = f"Open Kight Tour cannot be performed on a board of size {n}"
+ msg = f"Open Knight Tour cannot be performed on a board of size {n}"
95
raise ValueError(msg)
96
97
0 commit comments