stockpricefluctuation

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 MinHeap

type MinHeap [][2]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)

type StockPrice

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

func Constructor

func Constructor() StockPrice

func (*StockPrice) Current

func (sp *StockPrice) Current() int

func (*StockPrice) Maximum

func (sp *StockPrice) Maximum() int

func (*StockPrice) Minimum

func (sp *StockPrice) Minimum() int

func (*StockPrice) Update

func (sp *StockPrice) Update(timestamp int, price int)

Jump to

Keyboard shortcuts

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