Implement Trie (Prefix Tree) — Tries

Build a word store supporting insertion, exact-match lookup, and a test for whether any stored word begins with a given string.

Tries · Medium

More in Tries

All algorithm problems