priority-queue

module
v0.0.0-...-ddfd91d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2022 License: MIT

README

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL