- 博客(46)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode--289. Game of Life
LeetCode--289. Game of Life,Finite-state Machine
2016-07-31 19:00:17 205
转载 LeetCode--371. Sum of Two Integers
LeetCode--371. Sum of Two IntegersImplement arithmetic operator without +,-,*
2016-07-31 10:16:14 249
原创 Machine Learning--Classifying with probability theory: Naive Bayes
Machine Learning--Classifying with probability theory: Naive Bayes
2016-07-31 00:24:40 254
原创 LeetCode--373. Find Pairs with Smallest Sums
LeetCode--373. Find Pairs with Smallest Sums
2016-07-30 13:22:43 239
原创 文章标题
BasicsID3 AlgorithmGive the wiki link: ID3 Algorithm in WikiInformation Gain
2016-07-29 19:47:28 165
原创 Classifying with K-Nearest Neighbors
KNN classification AlgorithmLet’s see the code directly!def classify0(inX, dataSet, labels, k): dataSetSize = dataSet.shape[0] diffMat = tile(inX, (dataSetSize, 1)) - dataSet sqDiffMat = di
2016-07-28 16:30:25 202
原创 The Difference among size(), length() and length
size(), length() and length
2016-07-28 04:45:33 267
原创 LeetCode--Binary Tree Traversal ( Inorder, Preorder, PostOrder)
To start with, i will give the LeetCode Link!94. Binary Tree Inorder Traversal144. Binary Tree Preorder Traversal145. Binary Tree Postorder Traversal I only solve them with the recursive method
2016-07-26 10:31:58 279
原创 LeetCode--303. Range Sum Query - Immutable
303. Range Sum Query - ImmutableTotal Accepted: 37464Total Submissions: 147649Difficulty: Easy Given an integer array nums, find the sum of the elements between in
2016-07-26 09:31:33 253
转载 N-Queens
先来看一下算法思路N皇后问题的两个最高效的算法 看完算法思想和伪代码紧接着来关注真实代码。LeetCode--51. N-Queens
2016-07-25 00:50:28 239
原创 LeetCode--77_Combinations
这里发现一位大神,先附上大神的代码链接,一系列LeetCode写的都很好Code_Ganker
2016-07-24 22:38:57 182
转载 328. Odd Even Linked List
public class Solution { public ListNode oddEvenList(ListNode head) { if(head == null) return head; ListNode oddHead = head,evenHead =head.next; ListNode prevOdd
2016-07-24 20:40:56 207
原创 MapReduce Main Points
map method in Mapper classreduce method in Reducer classits chief class which will create a job object to manage all these taskMind the combiner function.
2016-07-24 10:49:04 297
转载 Backtracking Algorithm
Backtracking is a form of recursion.The usual scenario is that you are faced with a number of options, and you must choose one of these. After you make your choice you will get a new set of options;
2016-07-23 13:17:13 409
转载 Leetcode--Some answer Links
Thankful for all the brilliant brains.Though these answer use different code, but they are all excellent.luchaocun
2016-07-23 12:11:10 243
原创 [Python] How to Open Zip File in Host Location.
We know, if we use the requests to open the url of the zip file and open it, obviously, it will take quite a long time.For instancedef getZIP(zipFileName): r = requests.get(zipFileName).conten
2016-07-22 15:20:12 404
转载 Machine Learning Algorithms
I mainly use the python module scikit-learn, a.k.a. sklearn to learn the basic machine learning algorithms.So, this blog is the content of my continuing blogs tends to Machine-Learning Algorithm
2016-07-22 10:59:34 357
原创 Some Powerful Python Tools to Analyze Data
numpy Portalpandas Portal以上者两个emphasize on analysis of data.Scipymatplotlib.pylot Portalstress more on the presentation of the data.
2016-07-21 22:15:02 251
转载 Python中的lambda和Map混合运用
lambda in pythonmap() in pythonBothsosampleinfo["month"] = map(lambda x: x.month, sampleinfo.date)will put all of the sampleinfo.date value to x function, which will get all the mont
2016-07-21 16:23:59 718
原创 Data Type
Nominal(名词性) == !=Ordinal(序列上的) ==, !=, >, Quantitative(定量的) above ,+ , - Ratio(比例上的): above, x, /
2016-07-21 10:38:31 204
转载 Python的多版本如何处理--请使用pyenv
这里,该作者写的很清晰,具体的机制请看原文ClickMe归根溯源的讲,这里ClickHere是github上的英文原版,而且为了简化安装,竟然很贴心的自动化写了一个安装工具,curl一下就可以了。但是,我这里补充英文作者一点,安装完了,会提示WARNING: seems you still have not added 'pyenv' to the load
2016-07-18 21:56:57 871
原创 String的细节
It comes from a problem from LeetCode PortalString s i use the clause that s[i] to get the ith letter in string s. Surely, it's wrong.Because the expression of s[i] means that the s is an a
2016-07-18 13:09:16 185
原创 Ubuntu 14.04 如何将jdk 版本更新为Java8
$ sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java8-installer
2016-07-17 19:16:06 593
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人