import * as easyts from "https://deno.land/x/easyts@0.1.3/container/heap.ts";
Functions
f fix | Fix re-establishes the heap ordering after the element at index i has changed its value. |
Initialize array to heap | |
f pop | Pop removes and returns the minimum element (according to cf or <) from the heap. |
f push | Push pushes the element x onto the heap. |
Remove removes and returns the element at index i from the heap. |