offer

package
v0.0.0-...-54ead48 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CQueue

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

func Constructor1

func Constructor1() CQueue

func (*CQueue) AppendTail

func (this *CQueue) AppendTail(value int)

AppendTail 添加元素到队尾

func (*CQueue) DeleteHead

func (this *CQueue) DeleteHead() int

删除对头:输入栈全部入到输出栈,输出栈删除栈顶

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

ListNode

@Description: Definition for singly-linked list.

type MaxQueue

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

*

@author: CodeWater
@since: 2023/6/15
@desc: 队列的最大值

*

func Constructor3

func Constructor3() MaxQueue

func (*MaxQueue) Max_value

func (this *MaxQueue) Max_value() int

func (*MaxQueue) Pop_front

func (this *MaxQueue) Pop_front() int

func (*MaxQueue) Push_back

func (this *MaxQueue) Push_back(value int)

type MedianFinder

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

*

@author: CodeWater
@since: 2023/6/26
@desc: 数据流中的中位数

*

func Constructor4

func Constructor4() MedianFinder

* initialize your data structure here.

func (*MedianFinder) AddNum

func (mf *MedianFinder) AddNum(num int)

func (*MedianFinder) FindMedian

func (mf *MedianFinder) FindMedian() float64

type MinStack

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

method a================================================================

func Constructor2

func Constructor2() MinStack

* initialize your data structure here.

func (*MinStack) Min

func (this *MinStack) Min() int

func (*MinStack) Pop

func (this *MinStack) Pop()

func (*MinStack) Push

func (this *MinStack) Push(x int)

func (*MinStack) Top

func (this *MinStack) Top() int

type MinStack2

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

func Constructor

func Constructor() MinStack2

* initialize your data structure here.

func (*MinStack2) Min

func (this *MinStack2) Min() int

func (*MinStack2) Pop

func (this *MinStack2) Pop()

func (*MinStack2) Push

func (this *MinStack2) Push(x int)

func (*MinStack2) Top

func (this *MinStack2) Top() int

type Node

type Node struct {
	Val    int
	Next   *Node
	Random *Node
}

Definition for a Node.

type TreeNode

type TreeNode struct {
	Val   int
	Left  *TreeNode
	Right *TreeNode
}

TreeNode Definition for a binary tree node.

func Convert

func Convert(root *TreeNode) *TreeNode

本题不支持go,牛客有

Source Files

Jump to

Keyboard shortcuts

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