Problem B7 · Easy

Trie: Share Prefixes, Find Words

Build a prefix tree and distinguish exact-word lookup from prefix lookup.

Open the interactive visualisation