Heap.svelte

By Nicholas Chen source "Wow, he can do data structures and algorithms and interfaces! This guy is so employable. I want to hire him!" -You, hopefully
[empty]

Adding elements

Try adding an element, then right afterwards. This will maintain the heap property. (It will not work if you add multiple then heapify up - you will have to for that.)