- 博客(4)
- 收藏
- 关注
原创 [leetcode 1]TwoSum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution. Example: Given nums =
2016-06-04 10:30:46 607
原创 [leetcode 128]Longest consecutive sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1, 2, 3
2016-06-04 10:21:48 556
原创 [LeetCode26] Remove Duplicates from Sorted Array
作为LeetCode:80的先导题,不会做80的先看这题。 Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another ar
2016-06-01 18:56:28 851
原创 [LeetCode 80]Remove Duplicates from Sorted Array II
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array nums = [1,1,1,2,2,3], Your function should return length = 5, with the first fi
2016-06-01 18:53:55 642
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人