Hash table with chaining

medium

A collision is not an error - with more keys than buckets it is unavoidable. Chaining keeps a list per bucket, so lookup costs O(1 + α) where α is the average chain length.

Average O(1 + α)Worst O(n)Space O(n + m)
Loading the hash table with chaining engine…

Where to go next