二叉树遍历
文章平均质量分 59
jan_deng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode OJ 105. Construct Binary Tree from Preorder and Inorder Traversal
LeetCode OJ 105. Construct Binary Tree from Preorder and Inorder TraversalDescriptionGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not原创 2017-02-28 11:40:10 · 303 阅读 · 0 评论 -
LeetCode OJ 106. Construct Binary Tree from Inorder and Postorder Traversal
LeetCode OJ 106. Construct Binary Tree from Inorder and Postorder TraversalDescriptionGiven inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do n原创 2017-02-28 14:24:30 · 467 阅读 · 0 评论 -
LeetCode OJ 226. Invert Binary Tree
LeetCode OJ 226. Invert Binary TreeDescriptionInvert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9to 4 / \ 7 2 / \ / \ 9 6 3 1方法一Recursion: 递归,每一次翻转左右子树。这种方法要每次原创 2017-03-20 17:35:55 · 279 阅读 · 0 评论
分享