Back to Questions

Word Dictionary with Wildcards (Trie)

70.9K viewsAsked at IBM
Hard

Question Explain

Design a data structure that supports adding words and searching for words that might contain the '.' wildcard character. Use a Trie, but modify the search operation to handle the wildcard (DFS).

Start Trying This Question Simulation

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

Practice with This Question