
LeetCode
shenlan282
这个作者很懒,什么都没留下…
展开
-
LeetCode难度与出现频率
转载自:LeetCode Question Difficulty Distribution 1 Two Sum 2 5 array sort set Two Pointe转载 2014-05-08 10:02:17 · 953 阅读 · 0 评论 -
TwoSum
//Given 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 the target原创 2014-05-08 10:04:21 · 677 阅读 · 0 评论 -
Remove duplicates from array II
//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原创 2014-06-04 10:43:53 · 608 阅读 · 0 评论 -
Remove duplicates from 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原创 2014-06-04 10:42:01 · 758 阅读 · 0 评论 -
//Search in Rotated Sorted Array
//Sear 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原创 2014-06-05 10:09:06 · 684 阅读 · 0 评论