heap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxHeap

type MaxHeap[T xcontainer.Orderliness] struct {
	// contains filtered or unexported fields
}

func HeadBuildHeap

func HeadBuildHeap[T xcontainer.Orderliness](src []T) *MaxHeap[T]

func TailBuildHeap

func TailBuildHeap[T xcontainer.Orderliness](src []T) *MaxHeap[T]

func (*MaxHeap[T]) Add

func (h *MaxHeap[T]) Add(item T)

func (*MaxHeap[T]) Pop

func (h *MaxHeap[T]) Pop() T

Jump to

Keyboard shortcuts

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