What do you mean by Heapify?
code must be done in c++ thank you
heapify. (algorithm)Definition: Rearrange a heap to maintain the heapproperty, that is, the key of the root node is more extreme(greater or less) than or equal to the keys of its children.
Note: For an array implementation, heapify takes O(log2n) or O(h) time under the comparison model, where n is the numberof nodes and h is the height.
link to video
Max Heap Construction Algorithm
We shall use the same example to demonstrate how a
PayPal Gateway not configured
PayPal Gateway not configured