Skip to content

Hashing and hash tables

↑

A hash function maps keys to bucket candidates. Real tables need collision handling, equality checks and resize rules. Learn these mechanisms before trusting an expected O(1) lookup guarantee.

Start with one concept, work through a small example, and verify your prediction. Follow linked topics when a prerequisite or related idea needs more explanation.