
Have you ever thought about how your phone can guess the rest of a word before you finish typing? It stores millions of words in a Trie Data Structure, which makes searching almost instant.
| Word | Step-by-Step Logic | Shared Path |
| "the" | Create 't' -> 'h' -> 'e' (Mark 'e' as True) | None |
| "a" | Create 'a' (Mark 'a' as True) | None |
| "there" | Follow 't' -> 'h' -> 'e', then create 'r' -> 'e' | "the" |
| "answer" | Follow 'a', then create 'n' -> 's' -> 'w' -> 'e' -> 'r' | "a" |

