Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Difference ¶
type Difference struct {
// contains filtered or unexported fields
}
差分数组工具类
func NewDifference ¶
func NewDifference(nums []int) *Difference
func (*Difference) Increment ¶
func (d *Difference) Increment(i, j, val int)
给闭区间 [i, j] 增加 val(可以是负数)
func (*Difference) Result ¶
func (d *Difference) Result() []int
type MapSum ¶
type MapSum struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor() MapSum
type No519Solution ¶
type No519Solution struct {
// contains filtered or unexported fields
}
func No519Constructor ¶
func No519Constructor(m int, n int) No519Solution
func (*No519Solution) Flip ¶
func (this *No519Solution) Flip() []int
func (*No519Solution) Reset ¶
func (this *No519Solution) Reset()
type NumArray ¶
type NumArray struct {
// contains filtered or unexported fields
}
func ConstructorNO303 ¶
type NumArray307 ¶
type NumArray307 struct {
// contains filtered or unexported fields
}
func Constructor307 ¶
func Constructor307(nums []int) NumArray307
func (*NumArray307) Update ¶
func (this *NumArray307) Update(index int, val int)
type NumMatrix ¶
type NumMatrix struct {
// contains filtered or unexported fields
}
func ConstructorLCR013 ¶
func ConstructorNo304 ¶
type NumMatrixLCR013 ¶
type NumMatrixLCR013 struct {
// contains filtered or unexported fields
}
type PriorityQueue ¶
type PriorityQueue []*ListNode
func (PriorityQueue) Len ¶
func (pq PriorityQueue) Len() int
func (PriorityQueue) Less ¶
func (pq PriorityQueue) Less(i, j int) bool
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() interface{}
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(x interface{})
func (PriorityQueue) Swap ¶
func (pq PriorityQueue) Swap(i, j int)
type Solution ¶
type Solution struct {
// contains filtered or unexported fields
}
func Constructor384 ¶
Source Files ¶
- LCR006.go
- LCR013.go
- LCR021.go
- LCR022.go
- LCR023.go
- LCR078.go
- LCR113.go
- LCR140.go
- LCR141.go
- LCR142.go
- LCR171.go
- LCR179.go
- contest369.go
- contest391.go
- func.go
- no1.go
- no1038.go
- no104.go
- no105.go
- no106.go
- no1094.go
- no11.go
- no1109.go
- no111.go
- no114.go
- no1155.go
- no116.go
- no117.go
- no12.go
- no120.go
- no1218.go
- no13.go
- no136.go
- no14.go
- no141.go
- no142.go
- no144.go
- no15.go
- no1514.go
- no160.go
- no1631.go
- no167.go
- no19.go
- no2.go
- no206.go
- no207.go
- no21.go
- no210.go
- no2139.go
- no221.go
- no222.go
- no226.go
- no23.go
- no230.go
- no234.go
- no237.go
- no25.go
- no26.go
- no268.go
- no27.go
- no279.go
- no2828.go
- no283.go
- no299.go
- no3.go
- no303.go
- no304.go
- no307.go
- no318.go
- no319.go
- no34.go
- no344.go
- no367.go
- no375.go
- no384.go
- no397.go
- no4.go
- no407.go
- no42.go
- no438.go
- no450.go
- no488.go
- no495.go
- no5.go
- no519.go
- no5259.go
- no53.go
- no538.go
- no543.go
- no559.go
- no563.go
- no567.go
- no575.go
- no594.go
- no598.go
- no6.go
- no605.go
- no6341.go
- no6342.go
- no654.go
- no677.go
- no684.go
- no69.go
- no698.go
- no7.go
- no700.go
- no701.go
- no704.go
- no743.go
- no76.go
- no785.go
- no786.go
- no797.go
- no83.go
- no859.go
- no86.go
- no876.go
- no886.go
- no889.go
- no9.go
- no92.go
- no931.go
- no94.go
- no98.go
- no990.go
- structures.go
- test.go
Click to show internal directories.
Click to hide internal directories.