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.
Click to show internal directories.
Click to hide internal directories.