Implement Trie (Prefix Tree)
Google Interview Question
Problem Overview
Difficulty: Medium
LeetCode Pattern: Trie
Build a Trie (prefix tree) that supports 3 operations:
insert(word)
Store the word in the Trie.
search(word)
Return True if the exact word exists.
Return False otherwise.
startsWith(prefix)
Return True if any word in the Trie starts with the given prefix.
Return False otherwise.
Example
trie = Trie()
trie.…


