Skip to content

Commit 3f7292a

Browse files
Update dynamic_programming/word_break.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent ab64273 commit 3f7292a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: dynamic_programming/word_break.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def word_break(string: str, words: list[str]) -> bool:
6767
trie: dict[str, Any] = {}
6868
word_keeper_key = "WORD_KEEPER"
6969

70-
for word in word_dict:
70+
for word in words:
7171
trie_node = trie
7272
for c in word:
7373
if c not in trie_node:

0 commit comments

Comments
 (0)