错误的做法: 因为dp[j][i] != dp[j -1] + dp[j], 因为nums[j -1] 可能用多次, 不是只用一次, 这样就少写了情况, 看来不是维度越多越好, 只要找到一维, 按着这一个状态来递推就行, 一般是文中的题意变量作为状态, 不要老是想着遍历到第几个变量作为状态 Foll ...
分类:
其他好文 时间:
2017-08-08 13:55:30
阅读次数:
154
Matching In Multiplication Problem DescriptionIn the mathematical discipline of graph theory, a bipartite graph is a graph whose vertices can be divid ...
分类:
其他好文 时间:
2017-08-06 21:54:21
阅读次数:
176
Vasya is studying number theory. He has denoted a function f(a,?b) such that: f(a,?0)?=?0; f(a,?b)?=?1?+?f(a,?b?-?gcd(a,?b)), where gcd(a,?b) is the g ...
分类:
其他好文 时间:
2017-08-05 17:46:04
阅读次数:
166
INPUT+ONE HIDDEN LAYER+OUTPUT 已经可以实现任意布尔函数。其实也可以是任意逼近 measurable函数。 MLP是universal approximators。既然One hidden layer的拟合能力已经这么强,可以让网络更宽一些。 Numerous and s ...
分类:
Web程序 时间:
2017-07-27 10:44:58
阅读次数:
216
Information Entropy Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge Information Theory is one of the most popular courses in Marjar Univers ...
分类:
其他好文 时间:
2017-07-26 22:15:36
阅读次数:
211
比39. Combination Sum多了个从下一位递归而已 利用排序的性质 提高效率 ...
分类:
其他好文 时间:
2017-07-25 21:06:40
阅读次数:
194
Prime Distance Description The branch of mathematics called number theory is about properties of numbers. One of the areas that has captured the inter ...
分类:
其他好文 时间:
2017-07-25 10:19:12
阅读次数:
196
Graph Theory Mo's Algorithm https://www.hackerearth.com/practice/notes/mos-algorithm/ http://www.geeksforgeeks.org/mos-algorithm-query-square-root-dec ...
分类:
Web程序 时间:
2017-07-25 00:50:20
阅读次数:
218
Feel Good Bill is developing a new mathematical theory for human emotions. His recent investigations are dedicated to studying how good or bad days in ...
分类:
其他好文 时间:
2017-07-23 14:26:20
阅读次数:
183
Imagination is the source of creation. 想象是创作之源。 Sometimes, creation and innovation are very simple, nothing more than combination of two or more exist ...
分类:
其他好文 时间:
2017-07-19 23:36:03
阅读次数:
271