A specialized array type that maintains heap properties and node indices. Extends the standard Array with a WeakMap to track node positions.
Array
WeakMap
The type of heap node.
Maps heap nodes to their current indices in the array.
A specialized array type that maintains heap properties and node indices. Extends the standard
Array
with aWeakMap
to track node positions.