Glossary: Coding Interviews in Java
Trading space for time
Also written: trade space for time
Using extra memory, such as a set or map, to make a solution faster, so each lookup is O(1).
Glossary: Coding Interviews in Java
Also written: trade space for time
Using extra memory, such as a set or map, to make a solution faster, so each lookup is O(1).