1,组合相关公式C(n,m)=n*(n-1)*(n-2)...*(n-m-1)/m!=n!/(m!*(n-m)!)C(n,m)=C(n,n-m)C(n+1,m)=C(n,m)+C(n,m-1)C(n,1)+C(n,2)+…+C(n,n)=2^n;2,相关算法Question 1: 输入一个字符串,打...
分类:
编程语言 时间:
2014-10-16 00:02:31
阅读次数:
284
# if we list all natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6, and 9. The sum of these multiples is 23. Find the sum of all t...
分类:
编程语言 时间:
2014-10-15 23:39:21
阅读次数:
221
# Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3...
分类:
编程语言 时间:
2014-10-15 23:13:51
阅读次数:
245
Valid Palindrome
Total Accepted: 22728 Total
Submissions: 99271My Submissions
Question
Solution
Given a string, determine if it is a palindrome, considering only alphanumeric char...
分类:
其他好文 时间:
2014-10-14 18:21:29
阅读次数:
218
地址:http://www.zhihu.com/question/19901763原文:这么解释问题吧:1。单进程单线程:一个人在一个桌子上吃菜。2。单进程多线程:多个人在同一个桌子上一起吃菜。3。多进程单线程:多个人每个人在自己的桌子上吃菜。多线程的问题是多个人同时吃一道菜的时候容易发生争抢,例如...
分类:
编程语言 时间:
2014-10-13 22:26:57
阅读次数:
167
GitHub和SourceTree入门教程分类:Java2014-09-14 01:121404人阅读评论(2)收藏举报sourcetreegithubsourcetree教程sourcetree使用-->本教程适用于主流的开源网站github和bitbucket-->在github上注册一个账号,...
分类:
其他好文 时间:
2014-10-13 18:28:29
阅读次数:
231
fromehttp://askubuntu.com/questions/339169/how-to-install-tomcat-7-0-42-on-ubuntu-12-04-3-ltsNote: visit this question if you want to know why it's no...
分类:
系统相关 时间:
2014-10-12 16:45:38
阅读次数:
296
This is a very good linked list question, as there are tricky cases you have to consider, and getting them all right in one place is harder than it lo...
分类:
其他好文 时间:
2014-10-12 05:54:07
阅读次数:
161
http://www.techques.com/question/1-3627743/Delphi-thread-exception-mechanismi have a dilema on how threads work in delphi, and why at a moment when a ...
Here's an interesting customer question:Windows hasPostMessageandSendMessage. It also hasPostThreadMessagebut noSendThreadMessage. Why isn't there aSe...
分类:
其他好文 时间:
2014-10-10 13:06:24
阅读次数:
314