(self, word)
| 10 | self.root = TrieNode() |
| 11 | |
| 12 | def insert(self, word): |
| 13 | node=self.root |
| 14 | for i in word: |
| 15 | if i not in node.children: |
| 16 | node.children[i]=TrieNode() |
| 17 | node=node.children[i] |
| 18 | node.word=True |
| 19 | |
| 20 | def search(self, word): |
| 21 | node=self.root |
no test coverage detected