Build heap in o(n) time


this is my code …but it is not working correctly please verify what i did wrong


pass the vector by reference here

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask