#211

Design Add and Search Words Data Structure

medium· Triesruns: 0

Design a data structure that supports adding new words and searching with single-character wildcards. Implement addWord(word) and search(word). search returns true if the word matches any added word, where '.' acts as a wildcard for any single letter.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.