Explain Space Complexity
Space Complexity :- The space complexity of an algorithm is the amount of memory it requires to run to completion. Some of the reasons to study space complexity are: -
There may be various possible solutions with in dissimilar space requirement.
To estimate the size of the largest problem that a program can solve.