Design Add and Search Words Data Structure
Try to solve the Design Add and Search Words Data Structure problem.
Statement
Design a data structure that enables the addition of new words, facilitates word search, and provides the count of all words.
Implement a struct, WordDictionary, which should provide the following functionalities:
-
NewWordDictionary(): This function will ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy