Binary Tree Level Order Traversal II
2015-09-08 17:06
232 查看
Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right,
level by level from leaf to root).
For example: Given binary tree {3,9,20,#,#,15,7},
3
/ \
9 20
/ \
15 7
return its bottom-up level order traversal as:
[
[15,7]
[9,20],
[3],
]
题意:倒序输出层序遍历。
level by level from leaf to root).
For example: Given binary tree {3,9,20,#,#,15,7},
3
/ \
9 20
/ \
15 7
return its bottom-up level order traversal as:
[
[15,7]
[9,20],
[3],
]
题意:倒序输出层序遍历。
相关文章推荐
- leetcode4 Median of Two Sorted Arrays
- Studying at collage
- spring_150906_sqlmapclientdaosupport_getSqlMapClientTemplate
- 提高软件测试效率方法
- tomcat native
- UVA 12627 - Erratic Expansion
- struts自动赋值
- 填坑吧,模板君
- Eclipse的java代码出错:The import org.apache cannot be resolved
- A problem of sorting----(BestCoder Round #54 (div.2))
- 使用 SO_KEEPALIVE 选项检测TCP连接
- mysql 触发器的使用 FOR INSERT,DELETE,UPDATE
- C#前后台线程
- Binary Tree Level Order Traversal
- Java 条件表达式结果类型不一致问题
- 一次简单的接口编程,使用socket通信
- 零基础学python-12.6 使用for和zip来并行使用多个序列
- 笔记-大话设计模式-14 观察者模式
- Clr Via C#读书笔记---I/O限制的异步操作
- 零基础学python-12.6 使用for和zip来并行使用多个序列