kthlargestelementinastream

package
v0.0.0-...-22552e7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KthLargest

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

func Constructor

func Constructor(k int, nums []int) KthLargest

func (*KthLargest) Add

func (this *KthLargest) Add(val int) int

type MinHeap

type MinHeap []int

func (MinHeap) Len

func (h MinHeap) Len() int

func (MinHeap) Less

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

func (*MinHeap) Pop

func (h *MinHeap) Pop() any

func (*MinHeap) Push

func (h *MinHeap) Push(x any)

func (MinHeap) Swap

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

Jump to

Keyboard shortcuts

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