README ¶ < Previous Next > 208. Implement Trie (Prefix Tree) (Medium) Implement a trie with insert, search, and startsWith methods. Example: Trie trie = new Trie(); trie.insert("apple"); trie.search("apple"); // returns true trie.search("app"); // returns false trie.startsWith("app"); // returns true trie.insert("app"); trie.search("app"); // returns true Note: You may assume that all inputs are consist of lowercase letters a-z. All inputs are guaranteed to be non-empty strings. Related Topics [Design] [Trie] Similar Questions Add and Search Word - Data structure design (Medium) Design Search Autocomplete System (Hard) Replace Words (Medium) Implement Magic Dictionary (Medium) Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files implement_trie_prefix_tree.go Click to show internal directories. Click to hide internal directories.