- 博客(4)
- 收藏
- 关注
原创 LeetCode之81. Search in Rotated Sorted Array II.cpp
题目原文:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]).You are given a target value to search. If found...
2018-05-17 23:45:18 216
原创 LeetCode之33. Search in Rotated Sorted Array
题目原文:Suppose an array sorted in ascending order 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...
2018-05-17 23:41:24 220
原创 LeetCode之80. Remove Duplicates from Sorted Array II
题目原文:Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length.Do not allocate extra space for another array, you must do this by ...
2018-05-16 23:42:24 190
原创 LeetCode之26. Remove Duplicates from Sorted Array
题目原文:Given a sorted array nums, 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 by modi...
2018-05-16 23:35:23 149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人