自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除