Skip to content

Commit 7b996e2

Browse files
authored
backtracking -> word_search - replacing the example in doctest (#10188)
* Replacing the generator with numpy vector operations from lu_decomposition. * Revert "Replacing the generator with numpy vector operations from lu_decomposition." This reverts commit ad217c6. * Replacing the example in doctest with a less resource-intensive example.
1 parent b9a797f commit 7b996e2

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: backtracking/word_search.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,7 @@ def word_exists(board: list[list[str]], word: str) -> bool:
9898
False
9999
>>> word_exists([["A"]], "A")
100100
True
101-
>>> word_exists([["A","A","A","A","A","A"],
102-
... ["A","A","A","A","A","A"],
103-
... ["A","A","A","A","A","A"],
104-
... ["A","A","A","A","A","A"],
105-
... ["A","A","A","A","A","B"],
106-
... ["A","A","A","A","B","A"]],
107-
... "AAAAAAAAAAAAABB")
101+
>>> word_exists([["B", "A", "A"], ["A", "A", "A"], ["A", "B", "A"]], "ABB")
108102
False
109103
>>> word_exists([["A"]], 123)
110104
Traceback (most recent call last):

0 commit comments

Comments
 (0)