Skip to content
BytePatterns

Hash Tables

Trade a bit of memory for answers in constant time.

Hash Tables progress0 / 5
  1. Hash Table BasicsTurn a key into an address and skip the search.4m
  2. Two SumRemember what you have seen and the pair finds itself.5m
  3. Frequency CountingOne pass, one counter per distinct value.4m
  4. Group AnagramsGive every item a canonical key, then bucket by it.5m
  5. When Hashing FailsO(1) is an average, not a promise.5m