AI Features

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 ...

Ask