
树
Cheelynn
这个作者很懒,什么都没留下…
展开
-
Sicily 1210. 二叉树
1210. 二叉树ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescription在众多的数据结构中,二叉树是一种特殊而重要的结构,有着广泛的应用。二叉树或者是一个结点,或者有且仅有一个结点为二叉树的根,其余结点被分成两个互不相交的子集,一个作为左子集,另一个作为右子集,每个子集又是一个二叉树。原创 2013-09-07 20:47:03 · 778 阅读 · 0 评论 -
Sicily 1310. Right-Heavy Tree
1310. Right-Heavy TreeConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionA right-heavy tree is a binary tree where the value of a node is greater than or equal to the v原创 2013-09-07 20:17:18 · 950 阅读 · 0 评论 -
Sicily 1935. 二叉树重建
1935. 二叉树重建ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescription对于二叉树T,可以递归定义它的先序遍历、中序遍历和后序遍历如下: PreOrder(T)=T的根节点+PreOrder(T的左子树)+PreOrder(T的右子树) InOrder(T)=InOrder(T的左子树)+T的根原创 2013-09-07 22:30:04 · 992 阅读 · 0 评论