查找
益达915
一名在读大学生,渣渣一枚,进取中...
展开
-
LeetCode | 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 in the ar原创 2016-08-12 22:45:26 · 238 阅读 · 0 评论 -
LeetCode | Search Insert
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.Here原创 2016-08-12 22:56:04 · 234 阅读 · 0 评论 -
LeetCode | 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 is原创 2016-08-12 23:19:42 · 221 阅读 · 0 评论