42、Trapping Rain Water题目这道题目参考http://www.cnblogs.com/felixfang/p/3713197.html观察下就可以发现被水填满后的形状是先升后降的塔形,因此,先遍历一遍找到塔顶,然后分别从两边开始,往塔顶所在位置遍历,水位只会增高不会减小,且一直和...
分类:
其他好文 时间:
2015-12-17 15:43:28
阅读次数:
120
题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two en...
分类:
其他好文 时间:
2015-12-15 14:04:01
阅读次数:
153
题目来源https://leetcode.com/problems/trapping-rain-water/Givennnon-negative integers representing an elevation map where the width of each bar is 1, comp...
分类:
移动开发 时间:
2015-12-13 17:06:18
阅读次数:
179
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-12-13 14:02:57
阅读次数:
169
Container With Most WaterGiven n non-negative integers a1, a2, ..., an, where each represents a point at coordinate(i, ai).nvertical lines are drawn s...
分类:
其他好文 时间:
2015-12-09 19:30:26
阅读次数:
143
Givennnon-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.Fo...
分类:
移动开发 时间:
2015-12-08 22:02:27
阅读次数:
391
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-12-08 22:01:31
阅读次数:
160
题目连接https://leetcode.com/problems/number-of-islands/Number of IslandsDescriptionGiven a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number ...
分类:
其他好文 时间:
2015-12-08 10:06:27
阅读次数:
157
How and Where to Use the ORCA CardThe Microsoft ORCA card provides unlimited rides onall buses,trains, and water taxisoperated byparticipating transit...
分类:
其他好文 时间:
2015-12-07 15:59:55
阅读次数:
147
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-12-05 12:36:21
阅读次数:
157