Mental Model
Group words that have the same letters by sorting their letters and using that as a key.
Analogy: Imagine sorting letters of each word like sorting colored beads in a row; words with the same bead colors in the same order belong together in a box.
words: [eat, tea, tan, ate, nat, bat] hash map: key: "aet" -> [eat, tea, ate] key: "ant" -> [tan, nat] key: "abt" -> [bat]
