题目: Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoint....
分类:
其他好文 时间:
2015-10-06 14:06:00
阅读次数:
216
Lake CountingTime Limit:1000MSMemory Limit:65536KTotal Submissions:24578Accepted:12407DescriptionDue to recent rains, water has pooled in various plac...
分类:
其他好文 时间:
2015-10-04 22:21:03
阅读次数:
266
原题链接在这里:https://leetcode.com/problems/container-with-most-water/左右加班依次向中间移动,维护一个最大面积,每次移动小的那个夹板,因为储水量是由短的夹板决定的,移动大的夹板不会使面积更大。Time O(n), Space O(1).AC ...
分类:
其他好文 时间:
2015-09-26 07:00:41
阅读次数:
164
这是jQuery里常用的2个方法。他们2者功能是完全不同的。 测试1 测试2如果我们使用find()方法:var$find=$("div").find(".rain");alert($find.html());将会输出: 测试1如果使用filter()方法:var$filter=$(...
分类:
Web程序 时间:
2015-09-25 13:16:46
阅读次数:
169
在表中,可能会包含重复值。这并不成问题,不过,有时您也许希望仅仅列出不同(distinct)的值。关键词 distinct用于返回唯一不同的值。表A:示例1select distinct name from A执行后结果如下:示例2select distinct name, id from A执行后...
分类:
数据库 时间:
2015-09-22 16:10:28
阅读次数:
148
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5443刷道水题助助兴#include#include#include#include#define MAX 2100#define INF 0x7fffffusing namespace std;int ...
分类:
其他好文 时间:
2015-09-21 22:30:23
阅读次数:
178
传送门POUR1 - Pouring water#gcd#recursionGiven two vessels, one of which can accommodatealitres of water and the other -blitres of water, determine the n...
分类:
其他好文 时间:
2015-09-21 01:34:49
阅读次数:
281
题目: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...
分类:
移动开发 时间:
2015-09-19 16:37:50
阅读次数:
120
题目:Given n * m non-negative integers representing an elevation map 2d where the area of each cell is 1 * 1, compute how much water it is able to trap ...
分类:
移动开发 时间:
2015-09-19 16:37:43
阅读次数:
193
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5443The Water ProblemTime Limit: 1500/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Tot...
分类:
其他好文 时间:
2015-09-19 08:30:42
阅读次数:
170