~/problems
Problems
Basics first, then the classics, then company-style assessments. Every problem has tests you run right here; multi-level ones unlock as you go. See the roadmap.
Interview roadmap
Tries
Prefix trees for words and autocomplete.
10 problems
Interview roadmap
Tries Prefix trees for words and autocomplete.
- Play first: The Spell Book 1-minute game Trie (prefix tree)
- Count words by prefix with a trie basics py · c++ · java easy
- Abbreviated shell commands py · c++ · java easy
- Substring Wrapper MetaUber py · c++ · java easy
- Implement Trie (Prefix Tree) code the boss py · c++ · java medium
- Design Add and Search Words Data Structure py · c++ · java medium
- Word Search II py · c++ · java hard
- Longest-match tokenizer assessment 3 levels Anthropic py · c++ · java medium
- Search box suggestions assessment 3 levels py · c++ · java medium
More practice: 2 problems
- Tag known phrases in a guest review Airbnb py · c++ · java medium
- Radix cache for integer sequences assessment 2 levels py · c++ · java hard