Why doesn't my heap sort function work as expected?

后端 未结 0 1272
谎友^
谎友^ 2020-12-18 01:54

I want to implement heap sort using JS, but the result is incorrect. I think my logic is correct. However, I cannot figure out where is wrong in the code. Could anyone help

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