Does the memory occupied by the call stack taken into consideration when calculating the space complexity?
If not, it is reasonable that the space complexity of Heap