Grokking the Coding Interview: Patterns for Coding Questions
Vote

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%


Vote for new content