Balancing CPU and I/O throughput is essential
to achieve good overall performance and to maximize hardware utilization. SQL
Server includes two asynch...
分类:
数据库 时间:
2014-05-26 12:20:40
阅读次数:
386
这种题都采用倒序的方式吧,从大到小添加。要注意的是一些小细节:比如for(int i = m+n-1;
i >=0; i--){}, 在for语句里面已经有i--了,循环里面就不需要再写一个i--了 1 public class Solution { 2
public void merge(...
分类:
其他好文 时间:
2014-05-26 12:14:48
阅读次数:
227
基本上一次过,要注意边界条件的问题:如果在recursion里有两个参数int begin, end,
递归写作recursion(num, mid+1, end), 因为+号的原因,递归中是会出现begin > end
的情况的,所以考虑初始条件的时候应该要考虑充分。 1 /** 2 * Def....
分类:
其他好文 时间:
2014-05-26 12:12:49
阅读次数:
257
Given a strings1, we may represent it as a
binary tree by partitioning it to two non-empty substrings recursively.Below is
one possible representation...
分类:
其他好文 时间:
2014-05-26 11:24:36
阅读次数:
214
原文地址:http://antirez.com/news/52Hello! As
promised today I did some SSD testing.The setup: a Linux box with 24 GB of RAM,
with two disks.A) A spinning ...
分类:
其他好文 时间:
2014-05-26 10:24:56
阅读次数:
427
Background
Some concepts in Mathematics and Computer Science are simple in one or two dimensions but become more complex when extended to arbitrary dimensions. Consider solving differential equations...
分类:
其他好文 时间:
2014-05-26 04:31:34
阅读次数:
234
Summation of primes
Problem 10
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
还是使用Sieve of Eratosthenes 算法
我的python代码如下:
...
分类:
其他好文 时间:
2014-05-26 03:40:15
阅读次数:
243
【题目】
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 distinct solutions to the n-queens puzzle.
Each solution contains a distinct board configuratio...
分类:
其他好文 时间:
2014-05-24 17:12:32
阅读次数:
237
题目描述If the difference between any two adjancent
elements in a sequence is not more than K, then we call this sequence is a
K-diff sequence. A subseque...
分类:
其他好文 时间:
2014-05-24 09:39:27
阅读次数:
340