
leetcode查找
葱shen
爱技术,爱学习,爱游戏~
展开
-
[leetcode] 【查找】 34. Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). If the target is not found原创 2016-06-21 09:33:42 · 243 阅读 · 0 评论 -
[leetcode] 【查找】 35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array.原创 2016-06-21 11:24:32 · 257 阅读 · 0 评论 -
[leetcode] 【查找】 74. 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原创 2016-06-21 15:07:01 · 273 阅读 · 0 评论