My code URL is :-https://ide.codingblocks.com/s/655983
Plz see my code ,in this i sorted array in desecending order then printing the k th element of array.
My code URL is :-https://ide.codingblocks.com/s/655983
Plz see my code ,in this i sorted array in desecending order then printing the k th element of array.
@chhabrarishi2001_264ecb7697e8af2a,
instead of if you wrote while in heapify function check the updated code corrected and commented https://ide.codingblocks.com/s/656000
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.