binaryheap

package
v0.0.0-...-0f152c1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 2 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 any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](cmp compare.CompareFunc[T]) *BinaryHeap[T]

func (*BinaryHeap[T]) Len

func (b *BinaryHeap[T]) Len() int

func (*BinaryHeap[T]) Peek

func (b *BinaryHeap[T]) Peek() *T

func (*BinaryHeap[T]) Pop

func (b *BinaryHeap[T]) Pop() *T

func (*BinaryHeap[T]) Push

func (b *BinaryHeap[T]) Push(val T)

Jump to

Keyboard shortcuts

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