LeetCode day10 Called it

26. Sum Root to leaf Number

27. Minimum Depth of Binary Tree.

递归解法急速判断左右两边子树哪个depth最小,要注意如果有个节点只有一边孩子时,不能返回0,要返回另外一半边的depth。 

原文地址:https://www.cnblogs.com/superbo/p/4058990.html