A quarry operator in the Libyan needed to
expand their crushing and screening plant in order to cope with an increase in
chip and sand demand from the...
分类:
其他好文 时间:
2014-04-30 20:26:27
阅读次数:
646
2014-04-28
23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the
occurrences of any given words in it. 2 // Answer: 3 // 1....
分类:
其他好文 时间:
2014-04-29 16:00:32
阅读次数:
388
2014-04-28
23:28题目:给定一个数字,用英语把它读出来。解法:ZOJ上有相反的题目。如果我要用中文读书来呢?代码: 1 // 17.7 Read an integer
in English. 2 #include 3 #include 4 using namespace s...
分类:
其他好文 时间:
2014-04-29 15:29:44
阅读次数:
423
案例描述
在定时脚本运行过程中,发现当备份表格的sql语句与删除该表部分数据的sql语句同时运行时,mysql会检测出死锁,并打印出日志。两个sql语句如下:
(1)insert into backup_table select * fromsource_table (2)DELETE FROM s...
分类:
数据库 时间:
2014-04-29 15:28:42
阅读次数:
775
2014-04-29
01:05题目:数数从0到n总共有多少个数字‘2’?解法:数位动态规划,可以O(log10(n))时间内解决。代码: 1 // 18.4 Count the
number of 2s from 0 to n. 2 #include 3 using namespace std;....
分类:
其他好文 时间:
2014-04-29 14:44:34
阅读次数:
380
2014-04-29
01:02题目:从m个整数里随机选出n个整数,要求等概率。解法:和洗牌的算法类似,每次随机抽出一个数,抽n次即可。时间复杂度O(m *
n),空间复杂度O(m)。代码: 1 // 18.3 pick m integers randomly from an array of n ...
分类:
其他好文 时间:
2014-04-29 14:42:32
阅读次数:
345
2014-04-29
03:05题目:给定一个词典,其中某些词可能能够通过词典里其他的词拼接而成。找出这样的组合词里最长的一个。解法:Leetcode上有Word
Break这道题,和这题基本思路一致。代码: 1 // 18.7 Given a list of words, find out the...
分类:
其他好文 时间:
2014-04-29 14:30:17
阅读次数:
493
计算磁盘IOPS的三个因素:1、RAID类型的读写比不同RAID类型的IOPS计算公式:RAID类型公式RAID5、RAID3Drive IOPS=Read
IOPS + 4*Write IOPSRAID6Drive IOPS=Read IOPS + 6*Write IOPSRAID1、RAID10...
分类:
其他好文 时间:
2014-04-29 10:41:46
阅读次数:
382
Are you worried that you will not be able to
migrate from http://tfs.visualstudio.com when they start charging for it and you
don’t want to pay? Fear ...
分类:
其他好文 时间:
2014-04-29 10:23:47
阅读次数:
496
Extjs加载Store是异步加载的,这有很多好处。但是当我们要在两个或多个不同的store加载完再执行一些操作时,异步加载就成了一个问题。在Stack
Overflow 等网站搜集并试用了几个处理方法,总结如下。1、自己定义一个组件 (From:http://stackoverflow.com/q...
分类:
Web程序 时间:
2014-04-29 09:18:47
阅读次数:
583