Should the memory occupied by the call stack be considered into space complexity? If so, why is Heap sort have a space complexity of O(1)?

后端 未结 0 729
醉梦人生
醉梦人生 2021-01-05 02:07

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题