heap

package
v0.0.0-...-b071cee Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinHeap

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

func NewMinHeap

func NewMinHeap[T constraints.Ordered](vars []T, n int) *MinHeap[T]

func (*MinHeap[T]) Insert

func (h *MinHeap[T]) Insert(var_ T)

func (*MinHeap[T]) Pop

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

func (*MinHeap[T]) Sorted

func (h *MinHeap[T]) Sorted()

Jump to

Keyboard shortcuts

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