- 博客(5)
- 收藏
- 关注
原创 lintcode之Wood-Cut问题
1. 问题描述 2. java解法 2.1 SolutionWoodCut.java import java.lang.*; /** * @wood-cut problem * @author xin_wang * */ public class SolutionWoodCut { public int woodcut(int[] L,int k){ //f
2016-06-28 11:08:31 507
原创 lintcode之经典二分查找
1.问题: 2. Java解法 2.1 binarySearch.java /** * @Solution of Binary Search * @author xin_wang * */ public class binarySearch { public int binarysearch(int[] num,int target){ if(num==null
2016-06-24 15:18:24 323
原创 lintcode之strStr
1.问题描述: 2. java解法 2.1 strStr.java /** * * @author xin_wang * @2016-6-23 */ public class strStr { public int strstr(String source,String target){ if(source==null||target==null){
2016-06-23 16:56:35 506
原创 机器学习实战学习1:python实现KNN
python实现KNN: 1.KNN.py # KNN method ''' step1:calculate distance between input and given datasets step2:sort and find the nearest k distances step3:find the class which occupy the most
2016-02-19 17:15:23 282
原创 python实现KNN的一些问题
参考zouxy09的博客,链接点击打开链接,在看程序时的一些问题: 问题1: classCount[voteLabel] = classCount.get(voteLabel, 0) + 1 ##怎么理解##classCount={} #新建一个字典 ##classCount.get() 从字典中取值,key为voteIlabel,如果没有返回0,如果有就加1
2016-02-19 11:00:08 370
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人