What is space complexity of the program ?

A. Amount of hard disk space required to store the program

B. Amount of hard disk space required to compile the program

C. Amount of memory required by the program to run

D. Amount of memory required by the program to compile

Answer : C. Amount of memory required by the program to run

Explanation :

  • Space complexity is a measure of how efficient your code is in terms of memory used.

Categorized in: