原创
2014-03-13 04:14:09
518 阅读
原创
2014-01-20 14:24:34
631 阅读
原创
2014-01-20 13:08:41
686 阅读
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.For example,Given [0,1,0,2,1,0,1,3,2,1,2,1], retur
原创
2014-01-09 04:18:55
433 阅读
原创
2014-01-08 23:48:03
559 阅读
原创
2014-01-07 02:55:10
467 阅读
原创
2013-12-14 00:58:14
419 阅读
原创
2013-12-13 22:49:43
623 阅读
原创
2013-12-12 23:38:07
370 阅读
Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1]. DFS的题, 感觉有点像是八皇后问题的变形。 程序
原创
2013-12-08 23:04:53
363 阅读
原创
2013-12-07 00:09:36
450 阅读
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ]]You should return
原创
2013-12-05 23:17:12
311 阅读
原创
2013-12-05 22:34:19
390 阅读
原创
2013-12-03 23:54:08
434 阅读
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [2,1,3,4,1,2,1,5,4],the contiguous subarray [4,1,2,1] has the large
原创
2013-12-03 09:36:19
339 阅读
原创
2013-12-01 23:36:01
256 阅读
原创
2013-12-01 23:17:23
451 阅读
原创
2013-12-01 22:49:56
330 阅读
原创
2013-12-01 22:17:47
309 阅读
原创
2013-12-01 22:06:11
298 阅读
原创
2013-12-01 21:21:15
289 阅读
原创
2013-11-01 03:12:21
365 阅读
原创
2013-11-01 02:55:11
374 阅读
原创
2013-10-31 11:35:50
320 阅读
原创
2013-09-18 10:48:46
666 阅读
原创
2013-08-04 12:53:12
461 阅读
1点赞
原创
2013-08-04 10:12:34
544 阅读
1点赞