[LeetCode] 031. Next Permutation (Medium) (C++/Python)...
分类:
编程语言 时间:
2015-03-07 17:16:17
阅读次数:
154
[LeetCode] 016. 3Sum Closest (Medium) (C++/Java/Python)...
分类:
编程语言 时间:
2015-03-03 20:47:04
阅读次数:
224
[LeetCode] 015. 3Sum (Medium) (C++/Java/Python)...
分类:
编程语言 时间:
2015-03-03 20:44:52
阅读次数:
195
[LeetCode] 014. Longest Common Prefix (Easy) (C++/Java/Python)...
分类:
编程语言 时间:
2015-03-03 16:46:23
阅读次数:
141
[LeetCode] 011. Container With Most Water (Medium) (C++/Java/Python)...
分类:
编程语言 时间:
2015-03-02 23:58:34
阅读次数:
408
[LeetCode] 012. Integer to Roman (Medium) (C++/Java/Python)...
分类:
编程语言 时间:
2015-03-02 23:57:24
阅读次数:
298
[LeetCode] 013. Roman to Integer (Easy) (C++/Java/Python)...
分类:
编程语言 时间:
2015-03-02 23:56:14
阅读次数:
183
1 import random 2 3 def partition(A, lo, hi): 4 pivot_index = random.randint(lo, hi) 5 pivot = A[pivot_index] 6 A[pivot_index], A[hi] = ...
分类:
编程语言 时间:
2015-02-26 14:51:41
阅读次数:
183
An Python implementation of heap-sortbased on the detailed algorithm description in Introduction to Algorithms Third Editionimport randomdef max_heap....
分类:
编程语言 时间:
2015-02-25 22:19:46
阅读次数:
185
决策树看起来挺好的那么它是如何学习出来的?这就需要我们再细细探究一番。通过观察会其实我们会发现这个树学习的关键是找出它的各个节点之间的排列次序,既然所有的叶子节点都是判断的结果,那么哪一个特征需要我们拿来作为根节点,哪一个会成为它子节点......其实决策树的精髓也在于此,只要我们知道怎么去给特征排序,那么问题基本就解决了。...
分类:
其他好文 时间:
2015-02-06 18:57:57
阅读次数:
246