Rope Folding [Brian Dean, 2012]时间限制: 1 Sec
内存限制: 128 MB题目描述Farmer John has a long rope of length L (1 =f(i)的最大i值,递归即可。Work
Scheduling [Richard Peng, ....
分类:
其他好文 时间:
2014-06-02 17:40:21
阅读次数:
1039
In DOS you may have been used to D: to change
to the D drive. Cygwin provides a mapping of DOS/Windows drives to the unix file
system by mapping or mo...
memcpystack proc dest,src,cnt ;cnt is a count of
dwords ;this function has a granularity of dwords mov edx,src mov eax,dest sub
eax...
分类:
其他好文 时间:
2014-06-02 08:31:34
阅读次数:
432
Y2K Accounting BugDescriptionAccounting for
Computer Machinists (ACM) has sufferred from the Y2K bug and lost some vital
data for preparing annual rep...
分类:
其他好文 时间:
2014-06-02 00:57:42
阅读次数:
386
下载:http://www.codeblocks.org/downloads/26选13.12这个版本更新的文件位于论坛中:http://forums.codeblocks.org/的
》》Nighty Builds里面,但是很奇怪,打了补丁28 May 2014 build (9781),Code...
分类:
其他好文 时间:
2014-06-01 12:12:52
阅读次数:
236
Merge Sorted ArrayGiven two sorted integer
arrays A and B, merge B into A as one sorted array.Note: You may assume that A
has enough space (size that ...
分类:
其他好文 时间:
2014-06-01 12:04:32
阅读次数:
175
题目:
给定一个字符串,返回该串没有重复字符的最长子串。
分析:
1)子串:子串要求是连续的。
2)无重复,出现重复就断了,必须从新的位置开始。而新的位置就是重复字符第一次出现位置的下一个位置。
3)整个串可能没有一处重复。
那么,为了找出当前访问的字符是否出现过,要怎么做呢?当然是hash,O(1)的时间,而且既然是字符, 定义个255的hash table 就可以了,has...
分类:
其他好文 时间:
2014-06-01 10:48:31
阅读次数:
206
In the 2020 grid below, four numbers along a diagonal line have been marked in red.
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 ...
分类:
其他好文 时间:
2014-06-01 10:04:38
阅读次数:
419
【题目】
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from B. The number of elements initialized in A and B are...
分类:
其他好文 时间:
2014-06-01 09:21:16
阅读次数:
292
Description
T. Chur teaches various groups of students at university U. Every U-student has a unique Student Identification Number (SIN). A SIN s is an integer in the range 0 ≤ s ≤ MaxSIN with MaxS...
分类:
其他好文 时间:
2014-06-01 07:40:18
阅读次数:
248