Practice40 min

Practice: Build & Search Tries

Implementing the structure, wildcard DFS, and trie-pruned grid search.

Three stages of the same structure: build insert/search/startsWith from scratch, extend search with wildcard DFS branching, then point a trie of all target words at a letter grid and let it prune the search — the flag, the branch, and the prune, in that order.

Solving all problems completes this lesson automatically.