Skip to content

Commit 174e2e4

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

backtracking/word_search.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ def exits_word(
8787

8888
return False
8989

90-
def get_word_path(
91-
board: list[list[str]], word: str
92-
) -> list[tuple[int, int]] | None:
90+
91+
def get_word_path(board: list[list[str]], word: str) -> list[tuple[int, int]] | None:
9392
rows, cols = len(board), len(board[0])
9493

9594
def backtrack(r, c, index, path, visited):

0 commit comments

Comments
 (0)