priorityqueue

package
v0.0.0-...-9c9a4a3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PQ

type PQ[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](fn less[T]) *PQ[T]

func (*PQ[T]) Len

func (q *PQ[T]) Len() int

func (*PQ[T]) Less

func (q *PQ[T]) Less(i, j int) bool

func (*PQ[T]) Pop

func (q *PQ[T]) Pop() any

func (*PQ[T]) Push

func (q *PQ[T]) Push(v any)

func (*PQ[T]) Swap

func (q *PQ[T]) Swap(i, j int)

Jump to

Keyboard shortcuts

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