deno.land / std@0.139.0 / collections / binary_heap.ts

import * as mod from "https://deno.land/std@0.139.0/collections/binary_heap.ts";

Classes

BinaryHeap

A priority queue implemented with a binary heap. The heap is in decending order by default, using JavaScript's built in comparison operators to sort the values.

Functions

ascend

Compares its two arguments for ascending order using JavaScript's built in comparison operators.

descend

Compares its two arguments for descending order using JavaScript's built in comparison operators.

std
Deno standard library
GitHub Stars
2178
Go to latest

Version Info

Tagged at
a month ago