Space Complexity

What is Space Complexity

Amount of memory an algorithm takes to execute completely.

It is also described as the total extra space required by the program to run.