自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

原创 python 装饰器小白学习

python装饰器import functoolsdef use_log_src(func): print 'log src' func()def use_log(func): def wrapper(*args, **kwargs): print 'log log' return func(*args, **kwargs) ...

2018-05-28 23:23:46 171

原创 算法学习之动态规划(leetcode 87. Scramble String)

0x01题目Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation of s1 = "great":To scramble the string, we

2017-04-08 15:48:22 785

原创 算法学习之动态规划(leetcode 62. Unique Paths)

0x01题目62. Unique PathsA robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is tr

2017-03-17 15:11:00 410

原创 算法学习之动态规划(leetcode 85. Maximal Rectangle)

85. Maximal Rectangle

2017-03-15 16:59:00 8504 1

原创 算法学习之动态规划(leetcode 72. Edit Distance)

0x01题目72. Edit DistanceGiven two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations p

2016-11-30 22:18:44 355

原创 Ubuntu配置AMP(Apache+MySQL+PHP)

1 Ubuntu更新由于中科大的源(mirrors.ustc.edu.cn)出现的了问题,使用了清华的源(mirror.tuna.tsinghua.edu.cn),在(/etc/apt/sources.list)文件中进行替换,学习下其中的格式。 source.list文件格式说明 第一部分 第二部分 第三部分 第四部分 deb https://mirrors.tuna.ts

2016-11-18 14:39:35 443 1

原创 算法学习之动态规划(leetcode 304. Range Sum Query 2D - Immutable)

leetcode 304. Range Sum Query 2D - ImmutableGiven a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2)

2016-11-02 20:22:23 451

原创 算法学习之动态规划(leetcode 174. Dungeon Game)

leetcode 174. Dungeon Game The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant k

2016-10-31 23:59:40 603

原创 算法学习之回溯法(leetcode 140. Word Break II)

leetcode 140. Word Break II Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such possible sentences.For e

2016-10-29 17:36:29 535

原创 算法学习之动态规划(leetcode 44 Wildcard Matching)

Wildcard Matching

2016-10-29 16:14:04 839

原创 算法学习之动态规划(leetcode 91 Decode Ways)

leetcode 91. Decode Ways A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message containing digits, determ

2016-10-28 23:59:07 413

原创 皮尔逊相关系数 定义+python代码实现 (与王印讨论公式)

皮尔逊相关系数定义 皮尔逊相关系数判断两组数据与某一直线拟合程度的一种度量 公式及其计算过程如下 python代码实现'''@copyright Programming Collective Intelligence返回p1和p2的皮尔逊相关系数prefs是一个二维矩阵字典,如下图所示(名字,电影) movie1 ...

2016-10-25 20:59:23 5152

原创 1 统计学习方法基础

1.1 统计学习概念 统计学习(statistical learning)是关于计算机基于数据构建概率统计模型并运用模型对数据进行预测和分析的一门学科,统计学习也成为统计机器学习(statistical machine learning).特点 统计学习将数据作为研究对象,是数据驱动的学科 统计学习的目的是对数据进行预测和分析 统计学习以方法为中心,统计学习方法构建模型并应用

2016-05-06 15:20:41 1585

转载 Java之int与Integer区别

Java之int与Integer区别int与Integer显然区别: 1 Ingeter是int的包装类 2 实例化一个类时,其内部的int类型成员和Integer类型成员的初始值不同:int的初值为0,Ingeter的初值为nullint和Integer底层区别探索 A int和Integer(无论new与否)变量进行比较,都为true,这里的原因是Integer会自动拆箱成为int.

2016-05-05 21:25:30 386

SQL注入攻击与防御(第2版)---试读

SQL注入攻击与防御

2014-07-29

飞信客户端

飞信客户端

2012-10-23

空空如也

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

TA关注的人

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