05 2015 档案

摘要:1.TriangleGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi... 阅读全文
posted @ 2015-05-17 17:10 紫翎255 阅读(414) 评论(0) 推荐(0)
摘要:1.Maximum Depth of Binary Tree这是道简单的分治习题了分:左子树最大深度右子树最大深度治:最大深度等于max(左子树,右子树)+1public class Solution { public int maxDepth(TreeNode root) { ... 阅读全文
posted @ 2015-05-10 14:04 紫翎255 阅读(601) 评论(0) 推荐(0)