刚注册了leetcode,推荐的第一题就是Nim Game。You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you ta...
分类:
其他好文 时间:
2015-10-16 15:19:53
阅读次数:
173
11.4 Imagine you have a 20 GB file with one string per line. Explain how you would sort the file.这道题说给了我们一个20GB大小的文件,每行有一个字符串,让我们给文件内容排序。那么既然强调了这么大的一个...
分类:
编程语言 时间:
2015-10-16 11:50:12
阅读次数:
155
Over the next months I intend on writing a series of posts about the (many) extensibility points from WCF (up to .NET Framework 4.0). The cadence should be around one new post every 1-2 weeks (depe...
分类:
其他好文 时间:
2015-10-16 10:17:01
阅读次数:
287
参考文档http://liftoff.github.io/GateOne/Developer/embedding.html从https://github.com/liftoff/GateOne下载的GateOne源代码中,在gateone/tests/hello_embedded中有关于如何将Gat...
分类:
Web程序 时间:
2015-10-16 06:14:30
阅读次数:
369
CakeTime Limit:4 Seconds Memory Limit:65536 KBAlice and Bob like eating cake very much. One day, Alice and Bob went to a bakery and bought many cakes....
分类:
其他好文 时间:
2015-10-15 23:24:37
阅读次数:
264
java.lang.IllegalStateException: NoHibernateSession bound to thread, and configuration does not allow creation of non-transactional one here这个异常这个错误,网...
分类:
编程语言 时间:
2015-10-15 22:00:27
阅读次数:
235
题目描述:(链接)The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the tot...
分类:
其他好文 时间:
2015-10-15 00:57:32
阅读次数:
125
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2015-10-14 23:33:12
阅读次数:
219
题目:报数报数指的是,按照其中的整数的顺序进行报数,然后得到下一个数。如下所示:1, 11, 21, 1211, 111221, ...1读作"one 1"->11.11读作"two 1s"->21.21读作"one 2, then one 1"->1211.给定一个整数n, 返回 第n个顺序。样例...
分类:
其他好文 时间:
2015-10-14 21:38:31
阅读次数:
867
DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edg...
分类:
其他好文 时间:
2015-10-14 20:03:19
阅读次数:
221