Implement Trie (Prefix Tree)
easyBuild insert/search/startsWith on a trie of characters
Implement Trie (Prefix Tree)
Key Insight
Store each word as a path of characters; inserts and lookups follow the same walk.
Step 1Create the Root
No characters yet
Array
HashMap
Empty
Start with an empty root node.
1 / 3