datastructures-js

The javascript data structures project (w/ typescript support).


Priority Queue


Install

npm install --save @datastructures-js/priority-queue

require

const {
  PriorityQueue
  MinPriorityQueue,
  MaxPriorityQueue,
} = require('@datastructures-js/priority-queue');

import

import {
  PriorityQueue
  MinPriorityQueue,
  MaxPriorityQueue,
} from '@datastructures-js/priority-queue';

Full API

datastructures-js/priority-queue