Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 509 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 509 Bytes

Priority Queue

Simple priority queue implementation written in Go

Example

Use .new() to initialize a new priority queue. The objects used in the queue should be from the same type, and need to implement Comparator inteface.

Use Push(...) to add new item to the queue, and Pop() to remove items from the queue. See more examples in the test file