We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cd00a1 commit 03b7600Copy full SHA for 03b7600
data_structures/Trie/Trie.py
@@ -10,12 +10,12 @@ class TrieNode:
10
def __init__(self):
11
self.nodes = dict() # Mapping from char to TrieNode
12
13
- def add_words(self, words: [str]):
+ def insert_many(self, words: [str]):
14
for word in words:
15
- self.add_word(word)
+ self.insert(word)
16
17
- def add_word(self, word: str):
+ def insert(self, word: str):
18
pass
19
20
- def lookup_word(self, word: str) -> bool:
+ def find(self, word: str) -> bool:
21
0 commit comments