奥卡姆剃刀原则(Occam's Razor)
有一句话是这样说的,"An explanation of the data should be mad as simple as possible,but no simpler"。
在机器学习中其意义就是,对数据最简单的解释也就是最好的解释(The simplest model that fits the data is also the mo...
分类:
其他好文 时间:
2015-03-04 22:45:56
阅读次数:
177
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ...
分类:
其他好文 时间:
2015-03-04 16:17:59
阅读次数:
141
DescriptionBessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from...
分类:
其他好文 时间:
2015-03-04 14:28:54
阅读次数:
128
Given n unique integers, number k (1<=k<=n) and target. Find all possible k integers where their sum is target.Example
Given [1,2,3,4], k=2, target=5, [1,4] and [2,3] are possible solutions....
分类:
其他好文 时间:
2015-03-04 12:58:47
阅读次数:
126
# Redis configuration file example# Note on units: when memory size is needed, it is possible to specify# it in the usual form of 1k 5GB 4M and so for...
分类:
其他好文 时间:
2015-03-04 12:32:49
阅读次数:
233
js中有一个方法eval,能够随时执行用户编写的代码。
例如:js中的代码:
eval("alert('hello world');"); 将会弹出一个写有hello world的提示框。
但C#中却没有对应的方法。
Google了一下,网站http://www.ckode.dk/programming/eval-in-c-yes-its-possible/基本实现了两个参数的e...
http://acm.hdu.edu.cn/showproblem.php?pid=4612
Problem Description
N planets are connected by M bidirectional channels that allow instant transportation. It's always possible to travel b...
分类:
其他好文 时间:
2015-03-03 18:41:28
阅读次数:
143
Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioning ofs.For example, giv...
分类:
其他好文 时间:
2015-03-03 18:34:37
阅读次数:
132
题目链接:Permutations
Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1]....
分类:
其他好文 时间:
2015-03-03 11:52:09
阅读次数:
172
题目链接:Permutations II
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2], [...
分类:
其他好文 时间:
2015-03-03 11:50:31
阅读次数:
176