Concept Flow - Min-heap and max-heap properties
Start with empty heap
Insert element
Compare with parent
Swap up
Repeat until root or no swap
Heap property maintained
Ready for next insert or extract
This flow shows how elements are inserted into a heap and moved up to maintain min-heap or max-heap properties by comparing with their parent nodes.