ChenZengze's Blog


  • 首页

  • 归档

【Leetcode】643. Maximum Average Subarray I

发表于 2017-07-24 | | 阅读次数
DescriptionGiven an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to ...
阅读全文 »

【Leetcode】283. Move Zeroes

发表于 2017-07-15 | | 阅读次数
DescriptionGiven an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements. For e ...
阅读全文 »

【Leetcode】287. Find the Duplicate Number

发表于 2017-07-15 | | 阅读次数
DescriptionGiven an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number m ...
阅读全文 »

【Leetcode】289. Game of Life

发表于 2017-07-13 | | 阅读次数
DescriptionAccording to the Wikipedia’s article: “The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathemat ...
阅读全文 »

【Leetcode】 381. Insert Delete GetRandom O(1) - Duplicates allowed

发表于 2017-07-12 | | 阅读次数
DescriptionDesign a data structure that supports all following operations in average O(1) time. NoteDuplicate elements are allowed.insert(val): Insert ...
阅读全文 »

【Leetcode】380. Insert Delete GetRandom O(1)

发表于 2017-07-08 | | 阅读次数
DescriptionDesign a data structure that supports all following operations in average O(1) time.1.insert(val): Inserts an item val to the set if not al ...
阅读全文 »

【Leetcode】414. Third Maximum Number

发表于 2017-07-07 | | 阅读次数
DescriptionGiven a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The ti ...
阅读全文 »

【Leetcode】442. Find All Duplicates in an Array

发表于 2017-07-07 | | 阅读次数
DescriptionGiven 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 ...
阅读全文 »

【Leetcode】 448. Find All Numbers Disappeared in an Array

发表于 2017-07-07 | | 阅读次数
DescriptionGiven 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 ...
阅读全文 »

【Leetcode】485. Max Consecutive Ones

发表于 2017-07-04 | | 阅读次数
DescriptionGiven a binary array, find the maximum number of consecutive 1s in this array. ExampleInput: [1,1,0,1,1,1]Output: 3Explanation: The first t ...
阅读全文 »
12345
陈曾泽

陈曾泽

静水流深

41 日志
3 标签
GitHub Twitter Instagram
© 2017 陈曾泽
由 Hexo 强力驱动
主题 - NexT.Pisces