Methods
-
add(elements)
-
Add elements to the binary heap.
Parameters:
Name Type Argument Description elementsArray.<any> <repeatable>
- Source:
Based on http://en.wikipedia.org/wiki/Binary_Heap
as well as http://eloquentjavascript.net/appendix2.html
Add elements to the binary heap.
| Name | Type | Argument | Description |
|---|---|---|---|
elements |
Array.<any> |
<repeatable> |