@datastructures-js/heap-v3.0.0
[3.0.0] - 2020-01-17
Changed
- simplified heap nodes. preserves numbers and strings, and use object literal for key:value.
.heapify
static function now heapify the input list as well as returning a heap insatnce.
Added
.fix()
to fix positions of nodes in the heap..isValid
to validate heap nodes are in right positions..isHeapified
static function to valida if a given list is heapified.