//
pkg.gl
Category
github.com/GGGxie/dataStructure
practice
tree
package
1.0.1
Repository:
https://github.com/gggxie/datastructure.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
0
Files
247 SLOC
#
Functions
CodecConstructor
No description provided by the author
Compare
节点匹配.
Judge
自底向上递归,根据对称性,left.Left=right.Right,left.Right=right.Left.
PreOrder
前序遍历,每个节点单独和B进行匹配判断B是否为A的子树.
#
Structs
Codec
https://leetcode-cn.com/problems/serialize-and-deserialize-binary-tree/ 二叉树的序列化与反序列化.
TempNode
https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-ii-lcof/ 从上到下打印二叉树 II.
TreeNode
No description provided by the author