Documentation ¶
Index ¶
- func MinWindow(s string, t string) string
- type ListNode
- type MyCalendar
- type MyCalendar2
- type NumMatrix1
- type NumMatrix2
- type RecentCounter
- type Solution1
- type Solution10
- type Solution11
- type Solution14
- type Solution15
- type Solution16
- type Solution2
- type Solution3
- type Solution4
- type Solution5
- type Solution6
- type Solution7
- type Solution8
- type Solution9
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MyCalendar ¶
type MyCalendar struct {
// contains filtered or unexported fields
}
*
- 存储到list<int[]>后再遍历
func Constructor58 ¶
func Constructor58() MyCalendar
type MyCalendar2 ¶
type MyCalendar2 struct {
// contains filtered or unexported fields
}
func Constructor58b ¶
func Constructor58b() MyCalendar2
type NumMatrix1 ¶
type NumMatrix1 struct {
// contains filtered or unexported fields
}
func Constructor ¶
func Constructor(matrix [][]int) NumMatrix1
*
- 一维前缀和,一行的和
xcrj 工厂模式创建类,静态工厂 (numMatrix1 *NumMatrix1) 或 (numMatrix1 NumMatrix1)
type NumMatrix2 ¶
type NumMatrix2 struct {
// contains filtered or unexported fields
}
func Constructor2 ¶
func Constructor2(matrix [][]int) NumMatrix2
type RecentCounter ¶
type RecentCounter struct {
// contains filtered or unexported fields
}
xcrj 使用slice实现队列
func (*RecentCounter) Ping ¶
func (this *RecentCounter) Ping(t int) int
type Solution1 ¶
type Solution1 struct{}
*
- 剑指 Offer II 001. 整数除法
- 给定两个整数 a 和 b ,求它们的除法的商 a/b ,要求不得使用乘号 '*'、除号 '/' 以及求余符号 '%' 。
- 整数除法的结果应当截去(truncate)其小数部分
- - xcrj 使用位移运算符 结果没有小数
- 假设我们的环境只能存储 32 位有符号整数 数值范围是 [−2^31, 2^31−1]。本题中,如果除法结果溢出,则返回 2^31 − 1
type Solution10 ¶
type Solution10 struct{}
*
- 剑指 Offer II 010. 和为k的连续子数组的数量
- - 子数组的和等于k
- - 子数组连续
- - 求和为k的连续子数组的个数。
type Solution11 ¶
type Solution11 struct{}
*
- 剑指 Offer II 011. 0和1个数相同的连续最长子数组
- - 含有相同数量的0和1的子数组
- - 子数组连续
- - 最长子数组
type Solution14 ¶
type Solution14 struct{}
*
- 剑指 Offer II 014. s1是s2字符串的变位词
- - s1的变位词(每个排列)在s2中
- - s1长度大于s2
type Solution16 ¶
type Solution16 struct{}
*
- 剑指 Offer II 016. 不含重复字符的最长连续子字符串
- - 子字符串连续
- - 子字符串中不含有重复字符
Source Files ¶
- ListNode.go
- Solution1.go
- Solution10.go
- Solution100.go
- Solution101.go
- Solution102.go
- Solution103.go
- Solution104.go
- Solution107.go
- Solution11.go
- Solution112.go
- Solution12.go
- Solution13.go
- Solution14.go
- Solution15.go
- Solution16.go
- Solution17.go
- Solution18.go
- Solution19.go
- Solution2.go
- Solution20.go
- Solution21.go
- Solution22.go
- Solution23.go
- Solution24.go
- Solution25.go
- Solution3.go
- Solution35.go
- Solution39.go
- Solution4.go
- Solution42.go
- Solution45.go
- Solution5.go
- Solution50.go
- Solution52.go
- Solution54.go
- Solution55.go
- Solution57.go
- Solution58.go
- Solution6.go
- Solution7.go
- Solution79.go
- Solution8.go
- Solution80.go
- Solution81.go
- Solution82.go
- Solution83.go
- Solution84.go
- Solution85.go
- Solution86.go
- Solution87.go
- Solution88.go
- Solution89.go
- Solution9.go
- Solution90.go
- Solution91.go
- Solution92.go
- Solution93.go
- Solution94.go
- Solution95.go
- Solution96.go
- Solution97.go
- Solution98.go
- Solution99.go
- TreeNode.go
Click to show internal directories.
Click to hide internal directories.