Heapsort strategy: based on selection or interchange?

后端 未结 0 1477
挽巷
挽巷 2021-01-18 05:40

I cannot decide what approach would be more appropriate to HeapSort. The fact that selects the root or that it changes it with the last element? What from these two would be

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