We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183d506 commit 941ad7eCopy full SHA for 941ad7e
dynamic_programming/word_break.py
@@ -90,7 +90,7 @@ def is_breakable(index: int) -> bool:
90
if index == len_string:
91
return True
92
93
- trie_node = trie
+ trie_node: Any | None = trie
94
for i in range(index, len_string):
95
trie_node = trie_node.get(string[i], None)
96
0 commit comments