Skip to content

Glossary: Coding Interviews

Hash map

Also written: hash map lookup, dict, dictionary, set

A structure such as a Python dict or set that finds a key in O(1) on average. It answers "have we seen this?" and counts items in one pass.

Where the book teaches it

Related terms

Trading space for time