Whats wrong in this code?

hello @garganshul151
a) use long long , becuase array elements can be upto 10^15
b) refer this for heapsort -> https://www.geeksforgeeks.org/heap-sort/
c) there should be space " " between two array element in output . but u r printing “,” .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.