Update: July 10, 2014I got so many books in DB, so it is a better choice to focus on one book for each domain and finish those exercises.0. Blog --- u...
分类:
其他好文 时间:
2014-07-16 20:16:58
阅读次数:
177
Suppose you are given a string and you want to count how many times each letters appears. There are several ways you do it:You could create 26 variabl...
分类:
其他好文 时间:
2014-07-14 21:55:02
阅读次数:
247
How Many Tables
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 12657 Accepted Submission(s): 6204
Problem Description
Today is...
分类:
其他好文 时间:
2014-07-14 16:48:45
阅读次数:
265
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7487
Accepted: 3661
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?...
分类:
其他好文 时间:
2014-07-14 14:03:34
阅读次数:
241
Android is designed to run on many different types of devices, from phones to tablets and televisions. As a developer, the range of devices provide...
分类:
移动开发 时间:
2014-07-13 19:49:24
阅读次数:
300
DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out ...
分类:
其他好文 时间:
2014-07-13 08:17:12
阅读次数:
267
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:
其他好文 时间:
2014-07-12 16:31:50
阅读次数:
192
History Grading
Background
Many problems in Computer Science involve maximizing some measure according to constraints.
Consider a history exam in which students are asked to put seve...
分类:
其他好文 时间:
2014-07-10 23:04:32
阅读次数:
340
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7461
Accepted: 3645
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
...
分类:
其他好文 时间:
2014-07-10 20:04:45
阅读次数:
184
在工作中,大家或许常常遇到Too many connections这个错误,这时作为DBA想进数据库管理都进不去,是非常尴尬的一件事情。当然有同学说可以修改配置文件,但是修改配置文件是需要重启mysqld的,这在业务繁忙的数据库服务器上是不允许的。所以紧急情况下可以采用如下的方法,比如下面的测试。[...
分类:
其他好文 时间:
2014-07-10 16:49:29
阅读次数:
302