Problem Description
Although winter is far away, squirrels have to work day and night to save beans. They need plenty of food to get through those long cold days. After some time the squirrel family thinks that they have to solve a problem. They suppose th...
分类:
其他好文 时间:
2015-05-08 22:08:36
阅读次数:
156
Problem Description
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one unit of the same currency. For example, suppose that 1 US D...
分类:
其他好文 时间:
2015-05-07 14:32:45
阅读次数:
120
Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where there are 23 people including you. What is the probability...
分类:
其他好文 时间:
2015-04-30 21:57:25
阅读次数:
162
Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
You are given a target value to...
分类:
其他好文 时间:
2015-04-30 14:17:08
阅读次数:
91
Round Robina
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
Suppose that N players sit in order and take turns in a game, with the first person following the last pe...
分类:
其他好文 时间:
2015-04-27 21:48:03
阅读次数:
126
1 题目Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target val...
分类:
其他好文 时间:
2015-04-27 18:18:50
阅读次数:
92
Let f(w) be the frequency of a word w in free text. Suppose that all the words of a text are ranked according to their frequency, with the most freque...
分类:
其他好文 时间:
2015-04-23 01:51:21
阅读次数:
160
Mobile phones
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 15968
Accepted: 7373
Description
Suppose that the fourth generation mobile phone base station...
分类:
编程语言 时间:
2015-04-22 22:18:35
阅读次数:
175
题目描述Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).Find the minimum element.这里需要理解一个概念什么为Rotated Sorted Array。根据题目描述,Rotated...
分类:
其他好文 时间:
2015-04-22 18:23:25
阅读次数:
125
blockhouses
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述 Suppose that we have a square city with straight streets. A map of a city is a square board with n rows and n columns, each representing a...
分类:
其他好文 时间:
2015-04-21 09:54:39
阅读次数:
147