MCPcopy Create free account
hub / github.com/ByteByteGoHq/coding-interview-patterns / ~Trie

Method ~Trie

cpp/Tries/design_a_trie.cpp:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 ~Trie() {
23 delete root;
24 }
25
26 void insert(std::string word) {
27 TrieNode* node = root;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected