摘要:
"75. Find Peak Element" Description There is an integer array which has the following features: The numbers in adjacent positions are different. A[0] 阅读全文
摘要:
14. First Position of TargetDescriptionFor a given sorted array (ascending order) and a target number, find the first index of th... 阅读全文
摘要:
141. Sqrt(x)DescriptionSqrt(x)Implement int sqrt(int x).Compute and return the square root of x.ExampleExample 1:Input: 0Output:... 阅读全文
摘要:
60. Search Insert PositionDescriptionGiven a sorted array and a target value, return the index if the target is found. If not, re... 阅读全文
摘要:
28.Search a 2D MatrixDescriptionDescriptionWrite an efficient algorithm that searches for a value in an m x n matrix.This matrix ... 阅读全文
摘要:
31. Partition ArrayDescriptionGiven an array nums of integers and an int k, partition the array (i.e move the elements in “nums”)... 阅读全文
摘要:
15. 3SumDescriptionGiven an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique... 阅读全文
摘要:
59. 3Sum ClosestDescriptionGiven an array S of n integers, find three integers in S such that the sum is closest to a given numbe... 阅读全文