priority-queue-ds

1.0.1 • Public • Published

Priority Queue

Priority Queue Implementation in JavaScript

Installation & Usage :

 
npm install priority-queue-ds
 
const Queue = require('priority-queue-ds');
 
let queue = new Queue();
queue.enqueue("Walk the dog", 10); // enqueue take first argument as event and second argument as priority. Priority 1 is greater than 2
queue.dequeue(); // gives you the node with lowest priority

/priority-queue-ds/

    Package Sidebar

    Install

    npm i priority-queue-ds

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.75 kB

    Total Files

    5

    Last publish

    Collaborators

    • kumar_gaurav_mishra