LeetCode 128. Longest Consecutive Sequence(最长连续序列)

原题网址:https://leetcode.com/problems/longest-consecutive-sequence/ Given an unsorted array of integers, find the length of the longest consecutive el...

2016-05-27 00:26:15

阅读数:511

评论数:0

LeetCode 154. Find Minimum in Rotated Sorted Array II(旋转数组查找)

原题网址:https://leetcode.com/problems/find-minimum-in-rotated-sorted-array-ii/ Follow up for "Find Minimum in Rotated Sorted Array": What if...

2016-05-26 00:57:56

阅读数:317

评论数:0

LeetCode 167. Two Sum II - Input array is sorted(两数和)

原题网址:https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Given an array of integers that is already sorted in ascending order, find two...

2016-05-25 01:39:48

阅读数:444

评论数:0

LeetCode 170. Two Sum III - Data structure design(两数和)

原题网址:https://leetcode.com/problems/two-sum-iii-data-structure-design/ Design and implement a TwoSum class. It should support the following operatio...

2016-05-25 01:36:58

阅读数:623

评论数:0

LeetCode 81. Search in Rotated Sorted Array II(搜索旋转的数组)

原题网址:https://leetcode.com/problems/search-in-rotated-sorted-array-ii/ Follow up for "Search in Rotated Sorted Array": What if duplica...

2016-05-22 05:30:00

阅读数:271

评论数:0

LeetCode 79. Word Search(单词查找)

原题网址:https://leetcode.com/problems/word-search/ Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from...

2016-05-22 05:21:03

阅读数:481

评论数:0

LeetCode 74. Search a 2D Matrix(搜索矩阵)

原题网址:https://leetcode.com/problems/search-a-2d-matrix/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has t...

2016-05-22 05:19:08

阅读数:307

评论数:0

LeetCode 41. First Missing Positive(查找缺失的正数)

原题网址:https://leetcode.com/problems/first-missing-positive/ Given an unsorted integer array, find the first missing positive integer. For example, ...

2016-05-20 10:41:19

阅读数:258

评论数:0

LeetCode 35. Search Insert Position(搜索插入点)

原题网址:https://leetcode.com/problems/search-insert-position/ Given a sorted array and a target value, return the index if the target is found. If not...

2016-05-20 10:37:23

阅读数:228

评论数:0

LeetCode 34. Search for a Range(搜索范围)

原题网址:https://leetcode.com/problems/search-for-a-range/ Given a sorted array of integers, find the starting and ending position of a given target va...

2016-05-20 10:36:48

阅读数:244

评论数:0

LeetCode 33. Search in Rotated Sorted Array(旋转数组搜索)

原题网址:https://leetcode.com/problems/search-in-rotated-sorted-array/ Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e...

2016-05-20 10:36:45

阅读数:288

评论数:0

LeetCode 28. Implement strStr()(实现子串定位)

原题网址:https://leetcode.com/problems/implement-strstr/ Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if...

2016-05-20 10:35:48

阅读数:448

评论数:0

LeetCode 285. Inorder Successor in BST

原题网址:https://leetcode.com/problems/inorder-successor-in-bst/ Given a binary search tree and a node in it, find the in-order successor of that node ...

2016-04-15 00:35:29

阅读数:601

评论数:0

LeetCode 278. First Bad Version(首个坏版本)

原题网址:https://leetcode.com/problems/first-bad-version/ You are a product manager and currently leading a team to develop a new product. Unfortuna...

2016-04-14 01:25:35

阅读数:186

评论数:0

LeetCode 275. H-Index II(文献)

原题网址:https://leetcode.com/problems/h-index-ii/ Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize...

2016-04-13 12:14:37

阅读数:332

评论数:0

LeetCode 272. Closest Binary Search Tree Value II(二叉搜索树查找)

原题网址:https://leetcode.com/problems/closest-binary-search-tree-value-ii/ Given a non-empty binary search tree and a target value, find k values in t...

2016-04-13 06:15:51

阅读数:761

评论数:0

LeetCode 270. Closest Binary Search Tree Value(二叉搜索树最接近值查找)

原题网址:https://leetcode.com/problems/closest-binary-search-tree-value/ Given a non-empty binary search tree and a target value, find the value in the...

2016-04-13 02:53:19

阅读数:1058

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭