自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (3)
  • 收藏
  • 关注

原创 LeetCode - Max Consecutive Ones

原题网址: https://leetcode.com/problems/max-consecutive-ones/#/descriptionGiven a binary array, find the maximum number of consecutive 1s in this array.Example 1: Input: [1,1,0,1,1,1] Output: 3 Explana

2017-07-06 15:03:33 299

原创 LeetCode - Move Zeros

原题网址: https://leetcode.com/problems/move-zeroes/#/solutions题解: 令不为0的数从原数列首位依次向后放,后面的数位补零。class Solution(object): def moveZeroes(self, nums): """ :type nums: List[int] :rty

2017-07-06 14:50:11 314

原创 LeetCode - Search in Rotated Sorted Array

原题网址: https://leetcode.com/problems/search-in-rotated-sorted-array/#/descriptionSuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might

2017-07-06 13:31:55 231

原创 LeetCode - Remove Duplicates from Sorted Array II

原题网址: https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/#/descriptionFollow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted arra

2017-07-06 13:22:38 202

原创 LeetCode - Longest Consecutive Sequence

原题网址: https://leetcode.com/problems/longest-consecutive-sequence/#/descriptionGiven an unsorted array of integers, find the length of the longest consecutive elements sequence.For example, Given [100

2017-07-06 13:15:59 185

原创 LeetCode - Maximum Subarray

LeetCode - Maximum Subarray

2017-04-04 16:52:23 477

原创 LeetCode - Climbing Stairs

LeetCode - Climbing Stairs

2017-04-04 16:15:11 340

原创 LeetCode - Sqrt(x)

LeetCode - Sqrt(x)

2017-04-04 12:35:27 527

原创 LeetCode - Plus One

LeetCode - Plus One

2017-04-04 10:21:55 279

原创 LeetCode - Length of Last Word

LeetCode - Length of Last Word

2017-04-04 09:07:03 414

原创 LeetCode - Search Insert Position

LeetCode - Search Insert Position

2017-04-04 01:24:25 287

原创 LeetCode - Remove Element

LeetCode - Remove Element

2017-04-04 00:24:13 202

原创 LeetCode - Remove Duplicates from Sorted Array

LeetCode - Remove Duplicates from Sorted Array

2017-04-03 21:42:47 236

原创 LeetCode - Merge Two Sorted Lists

Merge Two Sorted ListsLeetCode 合并两个有序链表题目

2017-04-03 21:20:11 336

原创 模块度(Modularity)与Fast Newman算法讲解与代码实现

模块度(Modularity)是由Newman提出的一种衡量社区划分好坏的标准,由04年提出,06年由扩展为另一种形式。本文详细讲解了两种形式的模块度计算和理解,并同时讲解了模块度的矩阵划归形式。文章最后附上用matlab实现模块度的代码。

2017-03-14 21:52:49 59833 49

原创 LeetCode - Reverse Integer

LeetCode - Reverse Integer

2017-03-14 10:21:24 429

原创 LeetCode - TwoSum

LeetCode - TwoSum 题解

2017-03-09 14:14:03 241

原创 LeetCode - Add Digits

LeetCode - Add Digits 题解

2017-03-09 13:57:52 322

原创 LeetCode - ReverseString

LeetCode - ReverseString 题解

2017-03-09 13:26:07 209

算数编码 源代码 Python

算数编码 源代码 Python

2016-11-11

biKmeans 二分Kmeans聚类算法 Python

Python biKmeans 二分聚类算法

2016-11-11

Python kmeans 源代码

Python 编写的 kmeans 聚类算法。

2016-11-11

空空如也

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

TA关注的人

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