heap

package
v0.0.0-...-9df2b95 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.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 struct {
	// contains filtered or unexported fields
}

func NewMinHeap

func NewMinHeap() *MinHeap

func (*MinHeap) Empty

func (m *MinHeap) Empty() bool

func (*MinHeap) Extract

func (m *MinHeap) Extract() (Node, error)

func (*MinHeap) Insert

func (m *MinHeap) Insert(h Node) int

func (*MinHeap) Size

func (m *MinHeap) Size() int

type Node

type Node interface {
	Val() int
}

Jump to

Keyboard shortcuts

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