mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
@@ -72,5 +72,5 @@ class Trie(object):
|
||||
return
|
||||
for key, child in node.children.items():
|
||||
if child.terminates:
|
||||
result.append(curr_word+key)
|
||||
self._list_words(child, curr_word+key, result)
|
||||
result.append(curr_word + key)
|
||||
self._list_words(child, curr_word + key, result)
|
||||
|
||||
Reference in New Issue
Block a user