Back to Questions

Design a Word Dictionary with Wildcards

108.5K viewsAsked at Uber
Hard

Question Explain

Design a data structure that supports adding words and searching for words. The search query can contain the dot '.' wildcard character, which matches any one letter. Use a Trie and Backtracking/DFS.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Design a Word Dictionary with Wildcards - Interview Question