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 MinIntHeap

type MinIntHeap []int

func (*MinIntHeap) Len

func (h *MinIntHeap) Len() int

func (*MinIntHeap) Less

func (h *MinIntHeap) Less(i int, j int) bool

func (*MinIntHeap) Pop

func (h *MinIntHeap) Pop() (v interface{})

func (*MinIntHeap) Push

func (h *MinIntHeap) Push(x interface{})

func (*MinIntHeap) Swap

func (h *MinIntHeap) Swap(i int, j int)

Swap swaps the elements with indexes i and j.

Jump to

Keyboard shortcuts

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