heapify

Heapify is a process of organizing and rearranging elements in a binary heap data structure in such a way that the highest (or lowest) element is placed at the root, and the subsequent elements satisfy the heap property.

Requires login.