Problem Description
Dragon is watching NBA. He loves James and Miami Heat.
Here's an introduction of basketball game:http://en.wikipedia.org/wiki/Basketball. However the game in Dragon's version...
分类:
其他好文 时间:
2014-08-26 15:38:56
阅读次数:
183
Problem Description
There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:
其他好文 时间:
2014-08-26 15:38:46
阅读次数:
270
The use case is simple, I want to use both SSD disks and SATA disks within the same machine and ultimately create pools pointing to SSD or SATA disks. In order to achieve our goal, we need to modif...
分类:
其他好文 时间:
2014-08-26 12:01:06
阅读次数:
410
题目:hdoj 4975 A simple Gaussian elimination problem.
这个题目跟hdoj 4888 一样,只是数据加强了一点,这个题目确实出的不好,尤其数据,争议比较大,但是同时也说明优化有时候还是很有用的。
不懂的可以看这个讲解:点击
这个题目只是加了一点优化,就是判断的时候加入是行和为0,或者满的话,就跳出不用判断,然后就300ms过了。真心牛...
分类:
其他好文 时间:
2014-08-26 11:36:35
阅读次数:
224
前一段时间在《大型分布式存储与实践》中作者提http://到一个观点:弄清楚PAXOS协议会大大增强你对分布式系统理解的信心。后来陆陆续续看过网络上的一些PAXOS的介绍,包括PAXOS的历史、PAXOS的第一版论文(The Part-Time
Parlinment)、第二版论文( Paxos Made Simple)以及chubby的论文。都没太搞懂里面的细节,后来结合wiki上对paxos...
分类:
其他好文 时间:
2014-08-25 19:26:24
阅读次数:
222
ldap_host=$ldap_host; $this->ldap_dn=$ldap_dn; $this->ldap_user_group=$ldap_user_group; $this->ldap_manager_group=$ldap_manager_g...
分类:
Web程序 时间:
2014-08-25 19:13:14
阅读次数:
351
1 ldap_host=$ldap_host;113 $this->ldap_dn=$ldap_dn;114 $this->ldap_user_group=$ldap_user_group;115 $this->ldap_manager_group...
分类:
其他好文 时间:
2014-08-25 19:11:04
阅读次数:
313
工厂模式:专门负责将大量有共同接口的类实例化,工厂模式可以动态的决定将哪一个类实例化,不必事先知道每次要实例化哪一个类。工厂模式有以下几种形态:简单工厂模式(simple factory)又称静态工厂模式。工厂方法模式(Factory Method)又称工厂方法模式。抽象工厂模式(Abstract ...
分类:
其他好文 时间:
2014-08-25 18:50:24
阅读次数:
232
先讲一个小故事,说明理解力比执行力更重要。
关羽进账,“曹军来袭。”
刘备道,“你来断后。”
关羽手起刀落,斩了刘禅。
刘备道,“不是这个。”
关羽又一刀,劈了刘封。
刘备气道,“也不是这个”
关羽刀光一动,刘备腿间血光一闪。。。。
如何下命令,员工才会行动,而且是正确的行动呢? 关键在于告知他如果构建解决方案。如下方法取自《The solutiontango: seven simple steps to solutions in management》一书。...
分类:
其他好文 时间:
2014-08-25 13:29:04
阅读次数:
195
题目链接The problem is quite simple. You're given a number N and a positive integer K. Tell if N can be represented as a sum of K prime numbers (not neces...
分类:
其他好文 时间:
2014-08-25 13:19:04
阅读次数:
270