Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaxSlidingWindow ¶
MaxSlidingWindow return max value in sliding window which size is k. Each time the sliding window moves right by one position
Types ¶
type PriorityQueue ¶
func NewPriorityQueue ¶
func NewPriorityQueue(elems []int, size int) *PriorityQueue
func (*PriorityQueue) Less ¶
func (p *PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (p *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (p *PriorityQueue) Push(v interface{})
Click to show internal directories.
Click to hide internal directories.