priorityqueue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryHeap

type BinaryHeap[T constraints.Ordered] struct {
	// contains filtered or unexported fields
}

func NewBinaryHeap

func NewBinaryHeap[T constraints.Ordered]() *BinaryHeap[T]

func (*BinaryHeap[T]) Add

func (bh *BinaryHeap[T]) Add(val T)

func (*BinaryHeap[T]) Clear

func (bh *BinaryHeap[T]) Clear()

func (*BinaryHeap[T]) IsEmpty

func (bh *BinaryHeap[T]) IsEmpty() bool

func (*BinaryHeap[T]) Peek

func (bh *BinaryHeap[T]) Peek() (T, error)

func (*BinaryHeap[T]) Poll

func (bh *BinaryHeap[T]) Poll() (T, error)

func (*BinaryHeap[T]) Print

func (bh *BinaryHeap[T]) Print()

func (*BinaryHeap[T]) Size

func (bh *BinaryHeap[T]) Size() int

Jump to

Keyboard shortcuts

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