leetcode218

package
v0.0.0-...-5261e5c Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 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 IntHeap

type IntHeap []int

An IntHeap is a min-heap of ints.

func (*IntHeap) GetIndex

func (h *IntHeap) GetIndex(v interface{}) int

GetIndex of a int value

func (IntHeap) Len

func (h IntHeap) Len() int

func (IntHeap) Less

func (h IntHeap) Less(i, j int) bool

func (*IntHeap) Peek

func (h *IntHeap) Peek() interface{}

Peek a int value

func (*IntHeap) Pop

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

Pop a int value

func (*IntHeap) Push

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

Push a int value

func (IntHeap) Swap

func (h IntHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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