Wednesday, January 7, 2015

[LeetCode]Binary Tree Level Order Traversal


很简单,不多说。迭代的版本bfs,然后还有递归的方法。

代码如下:

iterative

recursive


No comments:

Post a Comment