tree-like automatic ordering of a set for the purpose of getting the lowest value quickly. This is faster than a normal binary search tree as it actually uses an array
| Parameter | Type | Description |
|---|
get the size of the heap
add a value to the heap
| Parameter | Type | Description |
|---|---|---|
| val | Number | vale to add to the heap |
print the array of the heap
get the lowest value
get and remove the lowest value
get and remove a value from a specific index
| Parameter | Type | Description |
|---|---|---|
| i | Int | index of the value to remove |