Space complexity
Space complexity describes how an algorithm’s memory requirements grow with input size, commonly measured asymptotically. It may count total memory used or only auxiliary memory beyond the input.
Space complexity describes how an algorithm’s memory requirements grow with input size, commonly measured asymptotically. It may count total memory used or only auxiliary memory beyond the input.