please check this code, what is problem in it?
Build heap from array in NLOGN
bhaiya jab ham apne array ko heap mai convert kar rhe hai dono tevhniques use karke o(nlogn) and o(n) , to dono ki output different kyo aa rhi hai?
ek se jayda heap ban sakta hai given input pe.
sab tumhara implementation pe depend karta hai.
acha acha , thik hai bhaiya …
check now->
okay bhaiya , ek hi mistake thi naa vo (max_ind) update?
ha. . . . . . . . . . . . .
Okay bhaiya , thank you 
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.