题目:
Given a binary tree, return the level order traversal of its nodes‘ values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,20,#,#,15,7}
,
3 / 9 20 / 15 7
return its level order traversal as:
[ [3], [9,20], [15,7] ]
题解:
这道题就是用传统的BFS来做。代码如下:
Binary Tree Level Order Traversal leetcode java,布布扣,bubuko.com
Binary Tree Level Order Traversal leetcode java
原文:http://www.cnblogs.com/springfor/p/3891391.html