Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxQueue ¶
type MaxQueue struct {
MonotoneQueue *MonotoneQueue
// contains filtered or unexported fields
}
剑指 Offer 59 - II. 队列的最大值 (https://leetcode.cn/problems/dui-lie-de-zui-da-zhi-lcof)
func Constructor ¶
func Constructor() MaxQueue
type MonotoneQueue ¶
type MonotoneQueue struct {
// contains filtered or unexported fields
}
monotone queue 单调队列
func (*MonotoneQueue) Max ¶
func (q *MonotoneQueue) Max() int
func (*MonotoneQueue) Pop ¶
func (q *MonotoneQueue) Pop(x int)
func (*MonotoneQueue) Push ¶
func (q *MonotoneQueue) Push(x int)
Click to show internal directories.
Click to hide internal directories.