Medium
Add and Search Words:Follow the Letter, Branch on the Dot
A catalog scan with per-character dots is honest. The intended walk is the same insert as Implement Trie; `.` DFS-es children — not a regex compile.
Read More4 questions
No easy questions for Tries yet.
A catalog scan with per-character dots is honest. The intended walk is the same insert as Implement Trie; `.` DFS-es children — not a regex compile.
Read MoreA HashSet makes exact search cheap; startsWith still scans every stored key. The intended walk creates missing edges and trusts the end mark.
Read MoreFilter-sort-take-three on every keystroke is honest; the intended trie keeps three lex-smallest products on each node so query does not DFS the subtree.
Read MoreRepresentation and operations — not the problem set.