How a Dictionary Finds Anything Instantly
Hash a key to a bucket and you jump straight to the value — no scanning. That's the O(1) magic behind every dictionary, set and cache. Understand hashing, collisions and load factor and a huge swath of "how is this so fast?" stops being mysterious.
- Hashing a key to a bucket
- Collisions + how they're resolved
- Load factor and resizing