heap_impl

package
v0.0.0-...-51489b6 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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 Heap

type Heap[T cmp.Ordered] struct {
	// contains filtered or unexported fields
}

func NewHeap

func NewHeap[T cmp.Ordered](items []T) Heap[T]

func (*Heap[T]) GetMin

func (h *Heap[T]) GetMin() T

func (*Heap[T]) Last

func (h *Heap[T]) Last() any

func (*Heap[T]) Len

func (h *Heap[T]) Len() int

func (*Heap[T]) Less

func (h *Heap[T]) Less(i int, j int) bool

func (*Heap[T]) Pop

func (h *Heap[T]) Pop() any

func (*Heap[T]) Push

func (h *Heap[T]) Push(v any)

func (*Heap[T]) Swap

func (h *Heap[T]) Swap(i int, j int)

func (*Heap[T]) Top

func (h *Heap[T]) Top() any

Jump to

Keyboard shortcuts

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