![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二叉树
cainiao_23333
这个作者很懒,什么都没留下…
展开
-
144. Binary Tree Preorder Traversal(94,145,前中后序三种遍历递归与非递归实现,统一模板)
https://leetcode.com/problems/binary-tree-preorder-traversal/ https://leetcode.com/problems/binary-tree-inorder-traversal/ https://leetcode.com/problems/binary-tree-postorder-traversal/ 算法思路:简单递归,或...原创 2019-12-12 13:03:24 · 145 阅读 · 0 评论 -
03-树3 Tree Traversals Again (25分)(1086 Tree Traversals Again)
https://pintia.cn/problem-sets/994805342720868352/problems/994805380754817024 An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a...原创 2019-12-10 13:01:55 · 102 阅读 · 0 评论