Advanced HashMap Series: The equals() and hashCode() Contract
How One Broken Rule Can Cripple Your HashMap

Search for a command to run...
Articles tagged with #hashmap
How One Broken Rule Can Cripple Your HashMap

Kicking off the advanced HashMap series with a deep technical breakdown: treeification thresholds, capacity safeguards, Red-Black Trees and a lot more

From Drawers to Code I thought I understood HashMap. I mean — I wrote two whole blogs about it.With analogies. Diagrams. Even kitchen drawers. But then I stared at a blank Java file. Nothing happened. Just me. A blinking cursor. And a brain that went...

A Continuation of the Journey Now that I had a pretty solid mental model of how HashMap works — and how my mom had been resolving collisions in God Mode all along — something else started to bug me. Sure, collisions were clever. Linear probing, chain...

The Kitchen Where It All Began I’ve used HashMap for years.Put a key, get a value. Fast. Clean. Easy. I never really thought about how it works. It just… worked. Then one day, I was helping my mom organize our kitchen. We had a lot of drawers — each ...
