- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 C++学习(5)
LeetCode 2.1.7Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to th
2016-12-19 16:42:09 228
原创 C++学习(4)
LeetCode 2.1.6Given 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
2016-12-19 16:34:56 266
原创 C++学习(3)
LeetCode 2.1.5There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log(m + n))1、找到两个数组合并后的第k个数,并返
2016-12-19 16:22:07 347
原创 C++学习(2)
LeetCode 2.1.3Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).You are given a target value to search. If found in the a
2016-12-16 23:41:13 303
原创 C++学习(1)
LeetCode2.1.2描述Follow up for ”Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array A = [1,1,1,2,2,3],Your function should return length = 5, and A
2016-12-16 22:50:47 262
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人