Complexity 101 - rFronteddu/general_wiki GitHub Wiki
Space Complexity
Space complexity is given by two contributions:
- The size of the stack used to keep track of recursive calls: return address of the function, parameters, local variables of the function.
- Non recursion related (such as memoization): global variables, intermediate results, memoization.