_0295

package
v0.0.0-...-53d1e4d Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 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 {
	MinHeap
}

func (*MaxHeap) Less

func (this *MaxHeap) Less(i, j int) bool

type MedianFinder

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

func Constructor

func Constructor() MedianFinder

func (*MedianFinder) AddNum

func (this *MedianFinder) AddNum(num int)

func (*MedianFinder) FindMedian

func (this *MedianFinder) FindMedian() float64

type MinHeap

type MinHeap struct {
	sort.IntSlice
}

func (*MinHeap) Pop

func (this *MinHeap) Pop() interface{}

func (*MinHeap) Push

func (this *MinHeap) Push(val interface{})

Jump to

Keyboard shortcuts

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