maxheap

package
v0.0.0-...-3b2a8e7 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 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 MaxHeap

type MaxHeap struct {
	// contains filtered or unexported fields
}

func Constructor

func Constructor() *MaxHeap

func (*MaxHeap) Add

func (h *MaxHeap) Add(e interface{})

向堆中添加元素

func (*MaxHeap) IsEmpty

func (h *MaxHeap) IsEmpty() bool

返回一个布尔值, 表示堆中是否为空

func (*MaxHeap) Size

func (h *MaxHeap) Size() int

返回堆中的元素个数

Jump to

Keyboard shortcuts

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