Concept Flow - Heap insertion (bubble up)
Insert new element at end of array
Compare new element with parent
Swap with parent
Move pointer to parent
↩Back to Compare
The new element is added at the end, then repeatedly compared with its parent. If smaller, it swaps and moves up until heap property is restored.