Skip to content

Commit 6effea5

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

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

backtracking/word_search.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,13 @@ def get_word_path(board: list[list[str]], word: str) -> list[tuple[int, int]] |
156156
validate_board_and_word(board, word)
157157
rows, cols = len(board), len(board[0])
158158

159-
def backtrack(r: int, c: int, index: int, path: list[tuple[int, int]], visited: set[tuple[int, int]]) -> list[tuple[int, int]] | None:
159+
def backtrack(
160+
r: int,
161+
c: int,
162+
index: int,
163+
path: list[tuple[int, int]],
164+
visited: set[tuple[int, int]],
165+
) -> list[tuple[int, int]] | None:
160166
if board[r][c] != word[index]:
161167
return None
162168

0 commit comments

Comments
 (0)