Description
Background
Jim is a brave explorer. One day, he set out for his next destination, a mysterious hill. When he arrived at the foot of the hill, he was told that there were a bunch of mons...
分类:
其他好文 时间:
2014-08-08 12:52:35
阅读次数:
314
Description
An encoding of a set of symbols is said to be immediately decodable if no code for one symbol is the prefix of a code for another symbol. We will assume for this problem that all ...
分类:
其他好文 时间:
2014-08-08 12:52:26
阅读次数:
267
1 #!/usr/bin/python 2 3 read = file('thread-1554-1-1.html','r') 4 wr = file('list','w') 5 6 while 1: 7 line=read.readline() 8 if 'href' in ...
分类:
编程语言 时间:
2014-08-08 12:27:06
阅读次数:
629
转自09年的blog,因为facebook在国内无法访问,故此摘录。The Photos application is one of Facebook’s most popular features. Up to date, users have uploaded over 15 billion p...
分类:
其他好文 时间:
2014-08-08 12:26:55
阅读次数:
374
Description
A diamond puzzle is played on a tessellated hexagon like the one shown in Figure 1 below. And in this problem the faces produced by the tessellation are identified as they are numbered ...
分类:
其他好文 时间:
2014-08-07 23:03:25
阅读次数:
348
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:
其他好文 时间:
2014-08-07 23:00:14
阅读次数:
275
Ikki's Story IV - Panda's Trick
Time Limit: 1000MS
Memory Limit: 131072K
Total Submissions: 7841
Accepted: 2900
Description
liympanda, one of Ikki’s friend, likes p...
分类:
其他好文 时间:
2014-08-07 19:16:01
阅读次数:
316
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m =
2 and n = 4,
return 1->4->3->2->5->NULL.
Note:
Given m, n satisfy t...
分类:
其他好文 时间:
2014-08-07 19:02:50
阅读次数:
251
Problem Description
I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one a...
分类:
移动开发 时间:
2014-08-07 18:59:10
阅读次数:
293
Get Luffy Out
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 7456
Accepted: 2835
Description
Ratish is a young man who always dreams of being a hero. One ...
分类:
其他好文 时间:
2014-08-07 18:55:20
阅读次数:
286