package
0.0.0-20210525112244-a601ee6fe7cf
Repository: https://github.com/smartsyoung/leetcode-in-go.git
Documentation: pkg.go.dev

# Functions

GetTargetNode 返回 Val = target 的 TreeNode root 中一定有 node.Val = target.
InPost2Tree 把 inorder 和 postorder 切片转换成 二叉树.
Interval2Ints 把 Interval 转换成 整型切片.
IntervalSlice2Intss 把 []Interval 转换成 [][]int.
Ints2List convert []int to List.
Ints2ListWithCycle returns a list whose tail point to pos-indexed node head's index is 0 if pos = -1, no cycle.
Ints2TreeNode 利用 []int 生成 *TreeNode.
Intss2IntervalSlice 把 [][]int 转换成 []Interval.
Intss2Points 把 [][]int 转换成 []Point.
List2Ints convert List to []int.
NewQueue 返回 *kit.Queue.
NewStack 返回 *kit.Stack.
Points2Intss 把 []Point 转换成 [][]int.
PreIn2Tree 把 preorder 和 inorder 切片转换成 二叉树.
Tree2Inorder 把 二叉树转换成 inorder 的切片.
Tree2ints 把 *TreeNode 按照行还原成 []int.
Tree2Postorder 把 二叉树 转换成 postorder 的切片.
Tree2Preorder 把 二叉树 转换成 preorder 的切片.

# Variables

NULL 方便添加测试数据.

# Structs

Interval 提供区间表示.
ListNode 是链接节点 这个不能复制到*_test.go文件中。会导致Travis失败.
Master 是 LeetCode 的结构体.
NestedInteger is the interface that allows for creating nested lists.
Point 定义了一个二维坐标点.
Queue 是用于存放 int 的队列.
Stack 是用于存放 int 的 栈.
TreeNode is tree's node.

# Type aliases

PQ implements heap.Interface and holds entries.