heapof

package
v0.0.0-...-39567c2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 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 Heap

type Heap[T coster] struct {
	// contains filtered or unexported fields
}

func Make

func Make[T coster](initElems []T) *Heap[T]

func (*Heap[T]) Len

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

func (*Heap[T]) Less

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

func (*Heap[T]) Pop

func (h *Heap[T]) Pop() interface{}

func (*Heap[T]) PopHeap

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

func (*Heap[T]) Push

func (h *Heap[T]) Push(x interface{})

func (*Heap[T]) PushHeap

func (h *Heap[T]) PushHeap(t T)

func (*Heap[T]) Swap

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

Jump to

Keyboard shortcuts

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