Neocortex 🧠

Search

Search IconIcon to open search

Inserting and Removing and Elements to/from Heap

Last updated Dec 14, 2021 Edit Source

# Adding Elements

When adding an element, add the element to the end of the heap, and apply Heap Bubbling to that element.

# Removing an Element

When removing an element, you fill the empty spot in the heap with the last element in the heap and apply Down-Heap Bubbling on that element.


Interactive Graph