![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树遍历
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 · 230 阅读 · 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 · 405 阅读 · 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 · 203 阅读 · 0 评论