leetcode 树
摘要:
1.binary-tree-postorder-traversal 解答:输出树后序遍历的结果(非递归)。采用先序遍历(把根左右改为根右左),然后reverse一下。 2. sum-root-to-leaf-numbers 解答:递归结合先序遍历 3. binary-tree-maximum-pat 阅读全文
posted @ 2019-02-23 12:46 Apiu 阅读(164) 评论(0) 推荐(0) 编辑
posted @ 2019-02-23 12:46 Apiu 阅读(164) 评论(0) 推荐(0) 编辑
posted @ 2018-05-06 16:09 Apiu 阅读(328) 评论(0) 推荐(0) 编辑
posted @ 2018-04-10 22:08 Apiu 阅读(285) 评论(0) 推荐(0) 编辑
posted @ 2018-04-10 20:02 Apiu 阅读(208) 评论(0) 推荐(0) 编辑
posted @ 2018-03-08 21:08 Apiu 阅读(539) 评论(0) 推荐(0) 编辑
posted @ 2018-02-14 15:13 Apiu 阅读(5639) 评论(0) 推荐(1) 编辑
posted @ 2018-02-13 21:39 Apiu 阅读(6892) 评论(4) 推荐(0) 编辑