AlgoViz

Heap operations

medium 18 min

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).