Heap operations
medium 18 minA binary heap supports insert (add at the end, sift up), extract (move the last value to the root, sift down) and peek (read the root).
A binary heap supports insert (add at the end, sift up), extract (move the last value to the root, sift down) and peek (read the root).