摘要: 原题链接在这里:https://leetcode.com/problems/search-in-rotated-sorted-array-ii/ 题目: Follow up for "Search in Rotated Sorted Array":What if duplicates are all 阅读全文
posted @ 2015-10-15 10:26 Dylan_Java_NYC 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/ 题目: Given an array of integers sorted in as 阅读全文
posted @ 2015-10-15 09:33 Dylan_Java_NYC 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/search-insert-position/description/ 题目: Given a sorted array and a target value, return the index if the target 阅读全文
posted @ 2015-10-15 08:42 Dylan_Java_NYC 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/search-a-2d-matrix-ii/ 题目: Write an efficient algorithm that searches for a value in an m x n matrix. This matri 阅读全文
posted @ 2015-10-15 07:01 Dylan_Java_NYC 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里: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 h 阅读全文
posted @ 2015-10-15 03:43 Dylan_Java_NYC 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/trapping-rain-water/ 题目: Given n non-negative integers representing an elevation map where the width of each bar 阅读全文
posted @ 2015-10-15 02:42 Dylan_Java_NYC 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/product-of-array-except-self/ 题目: Given an integer array nums, return an array answer such that answer[i] is equ 阅读全文
posted @ 2015-10-15 02:10 Dylan_Java_NYC 阅读(464) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/first-missing-positive/ 题目: Given an unsorted integer array, find the smallest missing positive integer. Example 阅读全文
posted @ 2015-10-15 01:23 Dylan_Java_NYC 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/find-the-duplicate-number/ 题目: Given an array nums containing n + 1 integers where each integer is between 1 and 阅读全文
posted @ 2015-10-15 00:32 Dylan_Java_NYC 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/missing-number/ 题目: Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that i 阅读全文
posted @ 2015-10-15 00:05 Dylan_Java_NYC 阅读(226) 评论(0) 推荐(0) 编辑