← BYTES
Algorithms·Starter·Ref: 12.1.8
What does 'space complexity' measure about an algorithm?
Have a question about this video? Mention reference 12.1.8 when you contact us.
a.How many lines of code it has
b.How much additional memory it uses as a function of input size
c.How fast it compiles
d.How many CPU cores it requires
Space complexity, like time complexity, is expressed with Big O notation but measures the extra memory (beyond the input itself) an algorithm needs as input size grows -- an in-place sort using O(1) extra space is more memory-efficient than one needing O(n) auxiliary storage.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES1218#Algorithms