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 4ecf2c1 commit ec9c7c9Copy full SHA for ec9c7c9
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: dict[str, Any] | Any | None = trie
+ trie_node: Any = trie
94
for i in range(index, len_string):
95
trie_node = trie_node.get(string[i], None)
96
0 commit comments