摘要: 问题一: 后序遍历 题目描述 求给定的二叉树的后序遍历。 例如: 给定的二叉树为{1,#,2,3}, 1↵ ↵ 2↵ /↵ 3↵ 返回[3,2,1]. 备注;用递归来解这道题太没有新意了,可以给出迭代的解法么? Given a binary tree, return the postorder tr 阅读全文
posted @ 2019-12-11 19:56 老干妈不太辣 阅读(284) 评论(0) 推荐(0)