priority_queue

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PriorityQueue

type PriorityQueue struct {
	// contains filtered or unexported fields
}

func NewComparablePriorityQueue

func NewComparablePriorityQueue(max bool, items ...types.Comparable) *PriorityQueue

func NewInt64PriorityQueue

func NewInt64PriorityQueue(max bool, items ...int64) *PriorityQueue

func NewPriorityQueue

func NewPriorityQueue(h heap.Interface) *PriorityQueue

func NewStringPriorityQueue

func NewStringPriorityQueue(max bool, items ...string) *PriorityQueue

func (*PriorityQueue) Pop

func (q *PriorityQueue) Pop() interface{}

func (*PriorityQueue) Push

func (q *PriorityQueue) Push(x interface{})

Jump to

Keyboard shortcuts

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