码迷,mamicode.com
首页 >  
搜索关键字:water    ( 3290个结果
Leetcode题解(十五)
42、Trapping Rain Water题目这道题目参考http://www.cnblogs.com/felixfang/p/3713197.html观察下就可以发现被水填满后的形状是先升后降的塔形,因此,先遍历一遍找到塔顶,然后分别从两边开始,往塔顶所在位置遍历,水位只会增高不会减小,且一直和...
分类:其他好文   时间:2015-12-17 15:43:28    阅读次数:120
LeetCode - Container With Most Water
题目: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
[LeetCode]题解(python):042-Trapping Rain Water
题目来源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
[leetcode 200] 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 ...
分类:其他好文   时间:2015-12-13 14:02:57    阅读次数:169
Container With Most Water(LintCode)
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
[LeetCode]101. Trapping Rain Water收集雨水
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
LeetCode OJ: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 ...
分类:其他好文   时间:2015-12-08 22:01:31    阅读次数:160
leetcode Number of Islands
题目连接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
[杂谈]交通工具orca card
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
[LeetCode]99. Container with Most Water最大容积
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!