集合
文章平均质量分 77
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 350. Intersection of Two Arrays II(数组交集)
原题网址:https://leetcode.com/problems/intersection-of-two-arrays-ii/Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], retu原创 2016-05-25 01:35:00 · 1364 阅读 · 0 评论 -
LeetCode 330. Patching Array(数组补丁)
原题网址:https://leetcode.com/problems/patching-array/Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n] inclusive ca原创 2016-04-28 06:24:51 · 572 阅读 · 0 评论 -
LeetCode 359. Logger Rate Limiter(日志漏桶)
原题网址:https://leetcode.com/problems/logger-rate-limiter/Design a logger system that receive stream of messages along with its timestamps, each message should be printed if and only if it is not p原创 2016-06-17 01:24:29 · 4096 阅读 · 0 评论 -
LeetCode 352. Data Stream as Disjoint Intervals(数据流区间)
原题网址:https://leetcode.com/problems/data-stream-as-disjoint-intervals/Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of dis原创 2016-06-16 01:11:36 · 1578 阅读 · 0 评论 -
LeetCode 47. Permutations II(排列)
原题网址:https://leetcode.com/problems/permutations-ii/Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the followi原创 2016-05-21 05:23:53 · 718 阅读 · 0 评论 -
LeetCode 349. Intersection of Two Arrays(数组交集)
原题网址:https://leetcode.com/problems/intersection-of-two-arrays/Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return原创 2016-05-18 12:29:59 · 805 阅读 · 0 评论 -
LeetCode 202. Happy Number(快乐数字)
原题网址:https://leetcode.com/problems/happy-number/Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive原创 2016-05-04 05:56:13 · 1224 阅读 · 0 评论 -
LeetCode 160. Intersection of Two Linked Lists
原题网址:https://leetcode.com/problems/intersection-of-two-linked-lists/Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following原创 2016-05-25 01:41:05 · 459 阅读 · 0 评论 -
LeetCode 78. Subsets(子集)
原题网址:https://leetcode.com/problems/subsets/Given a set of distinct integers, nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution se原创 2016-05-22 05:20:40 · 594 阅读 · 0 评论 -
LeetCode 368. Largest Divisible Subset
原题网址:https://leetcode.com/problems/largest-divisible-subset/Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of elements in this subset satisfie原创 2016-06-29 05:05:01 · 722 阅读 · 0 评论