LeetCode-跟树有关的一些事情

https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/

求最大深度。需要考虑root==NULL的情况,所以可以递归到NULL节点上。

posted @ 2014-10-04 00:36  zombies  阅读(76)  评论(0编辑  收藏  举报