- 博客(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 313
原创 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 351
原创 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 253
原创 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 215
原创 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 196
原创 LeetCode - Remove Duplicates from Sorted Array
LeetCode - Remove Duplicates from Sorted Array
2017-04-03 21:42:47 266
原创 LeetCode - Merge Two Sorted Lists
Merge Two Sorted ListsLeetCode 合并两个有序链表题目
2017-04-03 21:20:11 364
原创 模块度(Modularity)与Fast Newman算法讲解与代码实现
模块度(Modularity)是由Newman提出的一种衡量社区划分好坏的标准,由04年提出,06年由扩展为另一种形式。本文详细讲解了两种形式的模块度计算和理解,并同时讲解了模块度的矩阵划归形式。文章最后附上用matlab实现模块度的代码。
2017-03-14 21:52:49 60514 49
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人