Algorithms · Level 2 of 5
Space Complexity
How memory requirements scale with input size.
Peak auxiliary space and total storage are distinct quantities.
Listen to the definition and example
Audio transcript
Space Complexity. How memory requirements scale with input size. Peak auxiliary space and total storage are distinct quantities. For example: A sorting routine needs a temporary array proportional to its input.
Explore this concept
Why it matters
This helps you compare problem-solving methods and their computational tradeoffs.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.