Design Add and Search Words — Tries

Build a word dictionary where a search pattern uses a wildcard placeholder that matches any letter, and only same-length words can match.

Tries · Medium

More in Tries

All algorithm problems