https://oj.leetcode.com/problems/trapping-rain-water/模拟题,计算出在凹凸处存水量。对于一个位置 i ,分别计算出它左边的最大值 left (从左扫描一遍), 右边的最大值 right(从右扫描一遍) 。找left right中的最小值,如果大于 ...
分类:
移动开发 时间:
2014-06-28 16:32:30
阅读次数:
222
题目
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,...
分类:
移动开发 时间:
2014-06-27 23:20:39
阅读次数:
349
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...
分类:
移动开发 时间:
2014-06-27 16:53:38
阅读次数:
262
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.
分类:
移动开发 时间:
2014-06-27 12:51:24
阅读次数:
258
题目
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 endpoints of line i is at (i, ai) and (...
分类:
其他好文 时间:
2014-06-24 16:00:49
阅读次数:
220
6.3 You have a five-quart jug, a three-quart jug, and an unlimited supply of water (but no measuring cups). How would you come up with exactly four qu...
分类:
其他好文 时间:
2014-06-22 23:37:07
阅读次数:
227
ORACLE 五中表的优缺点总结:
1,普通表(heap table):适合大部分设计场景,有优点也有缺点。
优点:
a,语法简单方便
b,适合大部分场景
缺点:
a,更新日志开销较大
b,Delete无法释放空间(HWM High Water Mark不下降)
c,表记录太大检索太慢
d,索引回表读开销很大
e,即便有序插入,也很难保证有序读出
2,全局临时表:适合接口表设...
分类:
数据库 时间:
2014-06-22 12:24:02
阅读次数:
441
最小点覆盖
Air Raid
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3002 Accepted Submission(s): 1951
Problem Description
Co...
分类:
其他好文 时间:
2014-06-21 18:28:17
阅读次数:
246
1. 发布的程序:需要访问本地进程,那么只能发布为exe程序才可以。 此时supportedProfiles 配置为 extendedDesktop desktop desktop保证能发布air时不会出错,而访问本地进程则需要extendedDesktop2. 本地调试:需要访问本地进程 此时su...
分类:
其他好文 时间:
2014-06-21 08:47:05
阅读次数:
180