Back to Dashboard

Pro pattern

Upgrade to Pro to access this pattern and all 22 patterns.

Upgrade
PATTERN

Tries

A trie (prefix tree) stores strings character-by-character in a tree structure, enabling O(m) insert, search, and prefix lookup where m is the word length. Master basic trie operations, wildcard DFS, and trie-accelerated grid search.

Learn TriesExplanation, templates & reference

Implement Trie (Prefix Tree)

medium

Design Add and Search Words Data Structure

hard

Word Search II

hard