Developer’s Blog
/
Computer Science
/
Data Structure
/
Heap
/
Binary Heap
Search
Binary Heap
Adding: Bubble Up
Removing: Bubble Down
1.
Select the node looking for
Remove(12)
2.
Change it with the last node
3.
Bubble up / down