- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 leetcode刷题系列C++-Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the
2016-01-29 11:15:28 346
原创 leetcode刷题系列C++-Search in Rotated Sorted Array
Suppose 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 array retur
2016-01-28 17:48:40 593
原创 leetcode刷题系列C++-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 five
2016-01-28 14:05:47 325
原创 leetcode刷题系列C++-Remove Duplicates From Sorted Array
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 array, you must do this in place with
2016-01-27 18:29:50 642
web.py-0.33
2014-06-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人