How hashing works
A hash function converts a key into an integer slot in the table.
"Ada" -> hash -> slot 3
"Bob" -> hash -> slot 8
"Cy" -> hash -> slot 3 (collision!)
When two keys land in the same slot it is called a collision. Hash maps handle collisions by chaining or by finding the next open slot. A good hash spreads keys out evenly.