Mental Model
A trie stores words by sharing common prefixes, making it easy to check if a word exists by following its letters step-by-step.
Analogy: Imagine a tree of roads where each road sign is a letter. To find a word, you follow the signs letter by letter until you reach the end of the word.
root ↓ a -> b -> c -> null ↓ t (end) Each arrow shows the next letter link in the trie.
