AlgoViz

Hash usage

easy 16 min

Hash maps and hash sets find a key by computing where it lives instead of searching for it, so insert, lookup and delete cost O(1) on average.

Practice

3 problems with hidden tests. Python runs in your browser.

Loading problem…
Loading problem…
Loading problem…