Skip to content

Instantly share code, notes, and snippets.

@kingsleytan
Created October 8, 2019 05:11
Show Gist options
  • Save kingsleytan/d2577860a44e45cbc85aa49761245a26 to your computer and use it in GitHub Desktop.
Save kingsleytan/d2577860a44e45cbc85aa49761245a26 to your computer and use it in GitHub Desktop.
var pQ = new PriorityQueue();
pQ.enqueue([ gannicus , 3]);
pQ.enqueue([ spartacus , 1]);
pQ.enqueue([ crixus , 2]);
pQ.enqueue([ oenomaus , 4]);
pQ.print();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment