manrajgrover / algorithms-js

Consumable Data Structures and Algorithms library in JavaScript
MIT License
198 stars 129 forks source link

Heap: Support arrays as constructor parameter #4

Closed manrajgrover closed 7 years ago

manrajgrover commented 7 years ago

Currently, Heap Constructor accepts only compare function. Need to support heapifying through arrays.