107 Implement Trie / Prefix Tree Medium Trie Build

Build a tree-like structure where each path from root to a node represents a prefix of inserted words. Support inserting words and checking if a word or prefix exists.

O(m) time per operation · O(n*m) space total
108 Design Add and Search Words Medium Trie + DFS

Build a word dictionary that supports wildcard searches — a dot can match any letter.

O(m) insert · O(26^m) worst-case search · O(n*m) space
109 Word Search II Hard Trie + Backtrack

Given a grid of letters and a list of words, find which words can be spelled by tracing a path through adjacent cells.

O(m*n*4^L) time · O(W*L) space for trie
110 Longest Word in Dictionary Medium Trie + BFS

Find the longest word where every prefix of that word is also in the list.

O(n*m) time · O(n*m) space