Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Tree2Postorder ¶
Tree2Postorder 把 二叉树 转换成 postorder 的切片
Types ¶
type TreeNode ¶
func GetTargetNode ¶
GetTargetNode 返回 Val = target 的 TreeNode root 中一定有 node.Val = target
func InPost2Tree ¶
InPost2Tree 把 inorder 和 postorder 切片转换成 二叉树
func PreIn2Tree ¶
PreIn2Tree 把 preorder 和 inorder 切片转换成 二叉树
Click to show internal directories.
Click to hide internal directories.