MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / insert

Method insert

Tree/Trie.py:57–63  ·  view source on GitHub ↗

Inserts a word into the trie. :type word: str :rtype: void

(self, word)

Source from the content-addressed store, hash-verified

55
56
57 def insert(self, word):
58 """
59 Inserts a word into the trie.
60 :type word: str
61 :rtype: void
62 """
63 self.makeATrieNodes(word)
64
65 def search(self, word):
66 """

Callers

nothing calls this directly

Calls 1

makeATrieNodesMethod · 0.95

Tested by

no test coverage detected