tree-like automatic ordering of a set for the purpose of getting the highest 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 reverse heap
add a value to the reverse heap
Parameter | Type | Description |
---|---|---|
val | Number | vale to add to the reverse heap |
print the array of the reverse heap
get the highest value
get and remove the highest value
get and remove a value from a specific index
Parameter | Type | Description |
---|---|---|
i | Int | index of the value to remove |