自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 Leetcode-29. Divide Two Integers

Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.做除法,没有想到官网标准答案位运算,MAX_INT除1,用加减法循环算子一直是1,显然效率是问题想到的做法是用新的算子做被减数,用 去逼近除数,最后

2017-03-21 17:08:20 237

原创 Leetcode-4. Median of Two Sorted Arrays

Leetcode-4. Median of Two Sorted ArraysThere are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Merge Sort 二分法

2016-06-19 22:27:38 279

原创 Leetcode-3. Longest Substring Without Repeating Characters

Leetcode-3. Longest Substring Without Repeating CharactersO(n)时间复杂度,窗口滑动解决,遍历字符串,打访问标记,记录最大长度,如果有访问过(v),则从窗口左边开始寻找重复访问过的字符,找到后,该重复字符之前的字符设置为未访问过(关键),新窗口左边从该重复字符串下一位开始,右边从(v)的下一位开始,重新寻找最大长度不重复字符子串。

2016-05-19 11:27:57 223

原创 Leetcode-2. Add Two Numbers

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link

2016-05-11 12:38:32 348

原创 Leetcode-1. Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution.Example:Given nums =

2016-05-09 23:53:21 280

原创 使用R做随机森林分类时遇到的一些基本问题

前言:前一段时间,导师要求我去使用随机森林帮他做一个分类,他给的样本是两个mat文件,应该是一个正样本,一个负样本,然后就开始了使用R做随机森林的探索之旅。其中遇到的问题也是多种多样,包括数据处理,类型的转换,最终也让自己对randomForest的输入要求有了一个比较好的理解。数据:准备工作:首先当然是安装好R中随机森林包了,输入命令:install.packages("randomForest")随后我便查看了一下randomForest的帮助文档:原谅我性急,直接看操作示例

2016-03-22 09:23:50 15297 5

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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