Skip to content

Glossary: Coding Interviews

Trading space for time

Also written: trade space for time

Using extra memory, such as a set or dict, to make a solution faster, so each lookup is O(1).

Where the book teaches it

Related terms

BottleneckHash map