heap

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 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 struct {
	*sync.RWMutex
	// contains filtered or unexported fields
}

Heap is a heap of int

func NewHeap

func NewHeap(f HeapLess) *Heap

NewHeap TODO

func (Heap) Len

func (h Heap) Len() int

Len TODO

func (*Heap) Pop

func (h *Heap) Pop() interface{}

Pop TODO

func (*Heap) Push

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

Push TODO

func (Heap) Top

func (h Heap) Top() interface{}

Top TODO

type HeapLess

type HeapLess func(a interface{}, b interface{}) bool

Jump to

Keyboard shortcuts

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