【发布时间】:2021-04-01 17:39:18
【问题描述】:
前序遍历、中序遍历、后序遍历、水平序遍历等二叉树遍历被很多 IT 公司普遍采访。
记得前序遍历和中序遍历的迭代实现让我很困惑。
这里是来自 leetcode 的问题。
https://leetcode.com/problems/binary-tree-inorder-traversal/
https://leetcode.com/problems/binary-tree-preorder-traversal/
【问题讨论】:
标签: data-structures binary-tree computer-science recursive-datastructures