Mental Model
A hash map helps us find things quickly by using a special code to jump right to the spot instead of searching one by one.
Analogy: Imagine a huge library where books are arranged randomly. Without a system, you must check every book to find one. A hash map is like having a magical index that tells you exactly where the book is on the shelf instantly.
Array: [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Keys: k1 k2 k3 k4 k5 k6 k7 k8 k9 k10 Values: v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 Hash Map: key k3 -> index 2 -> value v3 Hash Map: key k7 -> index 6 -> value v7
