import { BinaryHeap } from "https://deno.land/x/structurae@4.0.1/binary-heap.ts";
Returns the first (min/max) element of the heap and replaces it with a given element.
x/structurae/binary-heap.ts>BinaryHeap#replace
import { BinaryHeap } from "https://deno.land/x/structurae@4.0.1/binary-heap.ts";
Returns the first (min/max) element of the heap and replaces it with a given element.