摘要:
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.Fo...
阅读全文
posted @ 2015-05-08 10:33
黄瓜小肥皂
阅读(126)
推荐(0)
编辑
摘要:
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining....
阅读全文
posted @ 2015-05-08 10:21
黄瓜小肥皂
阅读(131)
推荐(0)
编辑
摘要:
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space (size that...
阅读全文
posted @ 2015-05-08 10:04
黄瓜小肥皂
阅读(103)
推荐(0)
编辑
摘要:
Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1],[1,3,3,1], [1,4,6,...
阅读全文
posted @ 2015-05-08 09:57
黄瓜小肥皂
阅读(126)
推荐(0)
编辑
摘要:
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which...
阅读全文
posted @ 2015-05-08 09:52
黄瓜小肥皂
阅读(156)
推荐(0)
编辑