Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-08-28 00:47:28
阅读次数:
263
每一行都建一个线段树。。。。
Fast Matrix Operations
There is a matrix containing at most 106 elements divided into r rows and c columns. Each element has a
location (x,y) where 1
1 x1 y1 x2 y2 v
...
分类:
其他好文 时间:
2014-08-27 18:50:58
阅读次数:
199
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal i...
分类:
其他好文 时间:
2014-08-27 18:45:28
阅读次数:
228
思想: 常量空间要求,决定了不能使用递归。满二叉树,简单循环,每次修改一层即可。
思想同上: 但是下一层最开始结点和连接过程中链表的第一个结点不易确定,所以需要设定两个变量来保存。
分类:
其他好文 时间:
2014-08-27 16:26:58
阅读次数:
197
function jqchk(){? //jquery获取复选框值? ? var s=‘‘;? ? $(‘input[name="aihao"]:checked‘).each(function(){? ??? s+=$(this).val()+‘,‘;? ? });? 点击“提交”后,可以得到正确的选择值了,但是...
分类:
Web程序 时间:
2014-08-27 13:12:48
阅读次数:
275
Minimum Transport Cost
Time Limit: 2 Seconds Memory Limit: 65536 KB
These are N cities in Spring country. Between each pair of cities there may be one transportation track or none. Now ther...
分类:
其他好文 时间:
2014-08-27 13:07:27
阅读次数:
235
The people of Absurdistan discovered how to build roads only last year. After the discovery, every city decided to build their own road connecting their city with another city. Each newly built road c...
分类:
其他好文 时间:
2014-08-27 10:56:38
阅读次数:
347
题目:
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) ...
分类:
其他好文 时间:
2014-08-27 09:29:57
阅读次数:
174
B. Appleman and Card Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman hasncards. Each...
分类:
移动开发 时间:
2014-08-27 09:21:27
阅读次数:
240
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all d...
分类:
其他好文 时间:
2014-08-27 00:11:56
阅读次数:
308