Brutal-force solution is not hard to think about. But linear space input usually indicates O(n) DP solution.State design: dp[i]: total sum until index...
分类:
其他好文 时间:
2015-07-15 14:45:05
阅读次数:
97
Write Small Functions Using ExamplesKeith BraithwaiteWE WOULD LIKE TO WRITE CODE THAT IS CORRECT, and have evidence on hand that it is correct. It can help with both issues to think about the “size” of...
分类:
其他好文 时间:
2015-07-15 13:27:22
阅读次数:
137
I'm very tired today,and I began to think about why I so tired.Although my job is not a lot,but I dont want to do it. Becouse I feel sick.Thanks the d...
分类:
其他好文 时间:
2015-07-14 19:33:14
阅读次数:
110
An interesting problem! But not very easy at first glance. You need to think very clear about how will a keypoint be generated. Since I only learn fro...
分类:
其他好文 时间:
2015-07-13 23:53:14
阅读次数:
180
The Promise of Deep LearningByYoshua BengioHumans have long dreamed of creating machines that think. More than 100 years before the first programmable...
分类:
其他好文 时间:
2015-07-13 20:30:09
阅读次数:
95
记得两年前的这个时候,我开始学习php。我选择了thinkphp入门,写了我的第一个简单的cms。当时我什么都不懂,但是这里的技术氛围好的,我每问必有大牛护航。凭借cms,找到在it行业找到了第一份工作。两年来跌跌荡荡,先后也用过一些国外的框架。最近的一份工作,又重回到think。我开始遇到一些问题...
分类:
Web程序 时间:
2015-07-12 20:08:56
阅读次数:
121
think in java96页上说即使没有显示的使用static关键字,构造器实际上也是构造方法。但是我觉得为什么构造器还可以用this,还可以访问成员变量。
分类:
其他好文 时间:
2015-07-09 13:08:57
阅读次数:
125
So here is my current UnitOfWork implementation. This one makes use of the somewhat new current_session_context_class feature. I think this is quite s...
分类:
Web程序 时间:
2015-07-08 14:31:49
阅读次数:
134
isKindOfClassIf you use such constructs in your code, you might think it is alright to modify an object that in reality should not be modified. Doing ...
分类:
其他好文 时间:
2015-07-05 21:06:19
阅读次数:
129