
L2:BinarySearch到SortedArray
文章平均质量分 67
sunliuxun
Always Stay out of the Comfort Zone.
展开
-
L2:08 - Remove Duplicates from Sorted Array I, II
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/转载 2014-09-27 07:44:26 · 308 阅读 · 0 评论 -
L2:12 - Recover Sorted Array
Given a rotated sorted array, recover it to sorted array in-place. Example [4, 5, 1, 2, 3] -> [1, 2, 3, 4, 5] /** * Copyright: NineChapter * - Algorithm Course, Mock Interview, Interview Question转载 2014-09-27 07:52:33 · 379 阅读 · 0 评论 -
L2:10 - Merge Sorted Array
https://oj.leetcode.com/problems/merge-sorted-array/转载 2014-09-27 07:47:15 · 295 阅读 · 0 评论 -
L2:07 - Seach 2D Matrix II
。。。转载 2014-09-27 07:43:12 · 282 阅读 · 0 评论 -
L2:06 - Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row转载 2014-09-27 07:42:01 · 340 阅读 · 0 评论 -
L2:05 - Search in Rotated Sorted Array II
https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/转载 2014-09-27 07:37:23 · 391 阅读 · 0 评论 -
L2:04 - Search in Rotated Sorted Array
https://oj.leetcode.com/problems/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转载 2014-09-27 07:33:13 · 379 阅读 · 0 评论 -
L2:03 - Search Insert Position
https://oj.leetcode.com/problems/search-insert-position/转载 2014-09-27 07:31:20 · 310 阅读 · 0 评论 -
L2:01 - Binary Search
Binary search is a famous question in algorithm. For a given sorted array (ascending order) and a target number, find the first index of this number in O(log n) time complexity. If the target number d转载 2014-09-16 06:27:13 · 379 阅读 · 0 评论 -
L2:11 - Median of Two Sorted Arrays
https://oj.leetcode.com/problems/median-of-two-sorted-arrays/转载 2014-09-27 07:48:47 · 335 阅读 · 0 评论 -
L2:02 - 二分法第一个应用Search for a Range
https://oj.leetcode.com/problems/search-for-a-range/转载 2014-09-16 06:53:03 · 352 阅读 · 0 评论