Mental Model
A HashMap stores key-value pairs using a special function to find where to keep each pair quickly.
Analogy: Imagine a library where each book has a special code that tells you exactly which shelf and spot to find it, so you don't have to search all shelves.
Buckets array: [0] -> null [1] -> null [2] -> null [3] -> null [4] -> null Each bucket can hold a linked list of key-value pairs.
