max-heapsort
To develop locally, simply clone this repo and install dependencies with yarn:
npm install -g yarn
npm install max-heapsort
yarn add max-heapsort
import MaxHeap from 'max-heapsort';
let array = [9,4,7,2,6,1,3];
let sorted = new MaxHeap(array).sort();
//>? returns [9,7,6,4,3,2,1];
yarn
Sean Larkin sean.larkin@mutualofomaha.com (@TheLarkInn)
Contributions are highly welcome! This repo is commitizen friendly — please read about it here.