stock

package
v0.0.0-...-8d3c4b6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StockSpanner

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

func Construct

func Construct() *StockSpanner

func (*StockSpanner) Next

func (ss *StockSpanner) Next(price int) int

Next amotized O(1) One price will be pushed once and popped once. So 2 * N times stack operations and N times calls.

Jump to

Keyboard shortcuts

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