← DSA practice

Design Add And Search Words Data Structure

MediumTries

The problem

Design a dictionary that supports adding words and searching with "." wildcards.

Full statement, examples and constraints: see the original problem link below.

Solve it on LeetCode