LeetCode Question · Jan 2021 · USA

Amazon onsite || OOD || AutoComplete

3 upvotes 2,736 views 6 replies

Question Details

Implement operations for an AutoComplete feature. 1. InsertWords(words) - Given a stream of words, store the words 2. CheckPrefix(prefix) - Returns if the prefix exists 3. SearchPrefix(prefix) Given a prefix string, return words starting with the...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Trie Strings Heap