Creates a new max-heap instance, optionally initialized with elements.
The type of max-heap array.
Optional
Array of unsorted heap elements to initialize with. An element that appears more than once is added once. A value that is not an array is ignored.
A new max-heap instance.
Creates a new max-heap instance, optionally initialized with elements.