Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen...
分类:
其他好文 时间:
2015-04-11 06:35:48
阅读次数:
145
13914. Train Passengers
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
The Nordic Company of Passing Carriages is losing money at an alarming rate because most of t...
分类:
其他好文 时间:
2015-04-10 22:33:19
阅读次数:
237
题目Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assum...
分类:
其他好文 时间:
2015-04-10 22:08:54
阅读次数:
153
The BasicsFieldsFields are the most fundamental unit of construction: theyparse(read data from the stream and return an object) andbuild(take an objec...
分类:
编程语言 时间:
2015-04-10 22:01:28
阅读次数:
285
problem:
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5,
...
分类:
其他好文 时间:
2015-04-10 18:02:27
阅读次数:
99
public int maxArea(int[] height) { //http://blog.csdn.net/linhuanmars/article/details/21145429 贪心算法要看看 if(height==null || height.len...
分类:
其他好文 时间:
2015-04-10 13:30:50
阅读次数:
77
感觉和Container With Most Water很像,这里有个问题,如果让球最大的坑,怎么做呢?还有candy那道题,好像都是这种双扫系列的refhttp://fisherlei.blogspot.com/2013/01/leetcode-trapping-rain-water.html双扫...
分类:
移动开发 时间:
2015-04-10 13:00:09
阅读次数:
153
【题目】
Given a 2d grid map of '1's (land) and '0's
(water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. Yo...
分类:
其他好文 时间:
2015-04-10 11:29:34
阅读次数:
136
Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent ...
分类:
编程语言 时间:
2015-04-10 00:59:46
阅读次数:
342
Number of Islands
Given a 2d grid map of '1's (land) and '0's
(water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or...
分类:
其他好文 时间:
2015-04-09 23:51:43
阅读次数:
223