Grokking Data Structures & Algorithms for Coding Interviews
0% completed
Solution: Implement Trie (Prefix Tree)
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 3 years ago
In example #3, the trie operations should be:
["Trie", "insert", "search", "startsWith", "startsWith"]
instead of:
["Trie", "insert", "search", "search", "startsWith"]
"grap" is not a valid word in the trie.
Reading Progress
0%