Back to QuestionsPractice with This Question
Design a Word Filter (Prefix/Suffix Search)
24.4K views•Asked at Uber•
Hard
Question Explain
Design a data structure that supports searching for a word with a given `prefix` and `suffix` simultaneously. Consider using two Tries or a single specialized Trie.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.