python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Max Heap built with pimpl in c++ not working properly
I have a class built using the pimpl idiom that represents a binary max Heap and it is not working properly: the program compiles and prints the content of the array but the array is not sorted correc...
Spyromancer
Votes: 0
Answers: 1
Binary Heap get_parent() function in Python not working as expected
I am to define a function called get_parent(a_list, index) which takes a binary min-heap represented by a Python list and an integer as parameters. The function should return the value of the parent o...
Madeye Alastor Moody
Votes: 0
Answers: 1
Checking if Inserting values in order into an initially empty minimum binary heap is correct
Can someone tell me if I have produced the right minimum binary heap after inserting these values in order into an initially empty minimum binary heap?
[23, 41, 19, 59, 10, 15, 40]
yowhatsup123
Votes: 0
Answers: 1
Modified algorithm for Max-Heapify
in a question I have to answer they asking to write an algorithm Modified-Max-Heapify for a random value insertion.enter image description here The question is in below link. Can anyone help me to fig...
Imila Maheshan
Votes: 0
Answers: 1