自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 leetcode_442. Find All Duplicates in an Array 找数组中出现两次的数,正负号标记法

题目:Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements that appear twice in this array.Could you do it w

2016-12-29 16:00:13 734

原创 leetcode_20. Valid Parentheses 括号匹配问题;java String实例的声明和初始化;没用栈;

题目:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct order,"()"and"()[]{}"are all val...

2016-12-23 17:18:45 319

原创 leetcode_434. Number of Segments in a String 计算字符串中段的个数,只需遍历一遍字符串

题目:Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.Please note that the string does not contain any non-printable cha

2016-12-22 17:22:46 389

原创 leetcode_459. Repeated Substring Pattern 重复子串模式,判断某个字符串能否由某个字串重复若干次组成

题目:Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may assume the given string consists of lowerc

2016-12-21 22:16:31 2394

原创 leetcode_455. Assign Cookies 分配饼干,java数组的排序

题目:Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum si

2016-12-21 20:50:58 756

原创 leetcode_463. Island Perimeter 计算岛的周长

题目:You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is co

2016-12-21 10:35:55 543

原创 leetcode_448. Find All Numbers Disappeared in an Array 找出不在数组中的数,正负号标记法

题目:Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements of [1, n] inclusive that do not appear in this a

2016-12-20 22:24:26 776

原创 leetcode_461. Hamming Distance 计算汉明距离,按位异或运算,计算整数的二进制表示中1的个数 java

题目:The Hamming distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calculate the Hamming distance.Note:

2016-12-20 21:12:18 5669

原创 随机梯度下降算法

BP神经网络是神经网络的基础,其中可用随机梯度下降算法来加快更新权值和偏置,但是随机梯度下降算法总是忘记,下面来好好复习一下:    ⼈们已经研究出很多梯度下降的变化形式,包括⼀些更接近真实模拟球体物理运动的变化形 式。这些模拟球体的变化形式有很多优点,但是也有⼀个主要的缺点:它最终必需去计算代价函数C的 ⼆阶偏导,这代价可是⾮常⼤的。为了理解为什么这种做法代价⾼,假设我们想求所有的⼆阶偏导

2016-12-08 21:36:30 12835 1

原创 leetcode_424. Longest Repeating Character Replacement 求替换k个字符后连续相同字符子串的长度,滑动窗口的应用

题目:Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the length of a longest substring containing

2016-12-08 17:35:50 836

原创 leetcode_137. Single Number II 只出现一次的数字 II 偏离了题目考点,主要是为了写下java

题目:Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it wi

2016-12-05 21:19:24 606

原创 leetcode_454. 4Sum II 4个数组求和,返回和为0的所有情况的种数 数组两两相加存在map中

题目:Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero.To make problem a bit easier, all A, B, C, D ha

2016-12-05 20:38:14 930

原创 深度学习工具包之——theano的安装

最近要写卷积神经网络的程序,需要安装theano,在网上找了半天安装攻略,最后找到了一片好文:http://blog.csdn.net/niuwei22007/article/details/47684673我这个对安装程序十分反感的小白,居然在这篇文章的指导下用半天时间就安装好了,可见这篇文章讲的有多好。tips:1、在安装MinGw的时候,按照博文里讲的,在CMD环境下用命令 co

2016-12-02 21:53:10 1648

支持向量机和支持向量回归

根据《Pattern Recognition and Machine Learning》这本书的第7章(稀疏核机)的7.1节,介绍了样本数据线性可分的线性可分支持向量机和样本数据重叠的线性支持向量机,以及支持向量回归。详细介绍了公式的推导过程,以及SMO算法。

2016-11-24

空空如也

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

TA关注的人

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