Mental Model
A hash table stores data by turning keys into numbers to find values quickly. It uses a special function to decide where to put each item.
Analogy: Imagine a library where each book has a unique code. Instead of searching all shelves, you use the code to go directly to the right shelf and spot.
Hash Table: [0] -> null [1] -> null [2] -> null [3] -> null [4] -> null Hash Function: key % 5 Example: key=12 -> 12 % 5 = 2 -> store at index 2
