查找
文章平均质量分 80
Lynn_Baby
这个作者很懒,什么都没留下…
展开
-
LeetCode—search-in-rotated-sorted-array(旋转数组)—java
LeetCode: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 7might become4 5 6 7 0 1 2). You are given a ...原创 2018-06-12 14:27:19 · 405 阅读 · 0 评论 -
LeetCode—search-for-a-range(找一个值的范围)—java
题目描述: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 ofO(log n).If the target is not found in t...原创 2018-06-13 11:01:47 · 626 阅读 · 0 评论 -
LeetCode—search-insert-position(找到指定的值,否则是可能的位置)—java
题目描述: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...原创 2018-06-13 11:44:30 · 177 阅读 · 0 评论