Design Add and Search Words Data Structure
Problem Statement:-
Design a data structure that supports adding new words and finding if a string matches any previously added string.
Implement the WordDictionary class:
WordDictionary() Initializes the object.
void addWord(word) Adds word to the...
techie-sagar.hashnode.dev5 min read