Closed nienjen closed 3 years ago
Please check the solution is rigorous or not. Thanks.
I think this doesn't seem right because you return in line 4. Therefore, HEAPIFY(A, I) in line 5 won't be executed. Also, this should be a void function which returns nothing.
HEAPIFY(A, I)
Thanks for your explanation
Please check the solution is rigorous or not. Thanks.