
桶
文章平均质量分 79
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 169. Majority Element(众数)
原题网址:https://leetcode.com/problems/majority-element/Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may as原创 2016-05-25 01:37:08 · 1609 阅读 · 0 评论 -
LeetCode 220. Contains Duplicate III(检查重复)
原题网址:https://leetcode.com/problems/contains-duplicate-iii/Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i]原创 2016-05-06 08:32:53 · 1571 阅读 · 0 评论 -
LeetCode 164. Maximum Gap(最大空隙)
原题网址:https://leetcode.com/problems/maximum-gap/Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.原创 2016-05-25 01:40:27 · 697 阅读 · 0 评论