
自底向上
文章平均质量分 69
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 111. Minimum Depth of Binary Tree(二叉树最小深度)
原题网址:https://leetcode.com/problems/minimum-depth-of-binary-tree/ Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root nod原创 2016-05-24 00:18:53 · 1062 阅读 · 0 评论 -
LeetCode 112. Path Sum(路径和)
原题网址:https://leetcode.com/problems/path-sum/ Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.原创 2016-05-24 00:18:59 · 488 阅读 · 0 评论