Problem B5 · Easy

Min-Heap: Insert and Extract

Maintain a priority queue while observing sift-up and sift-down.

Open the interactive visualisation