Skip to content

@datastructures-js/heap-v3.0.0

Compare
Choose a tag to compare
@eyas-ranjous eyas-ranjous released this 17 Jan 23:29
· 160 commits to master since this release
1c67f50

[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.