摘要:
Given a sorted array of n integers, find the starting and ending position of a given target value. If the target is not found in the array, return [-1 阅读全文
posted @ 2016-08-10 23:44
冰凌花花~
阅读(131)
评论(0)
推荐(0)
摘要:
Hi 大家,这道题是lintcode上的find peak element的题,不是leecode的那道, 这两道题是有区别的,这道题的题目中说明了:只有左右两侧的数都小于某个元素,这种才是峰值, 而leetcode的题,是只要找到个最大值就行,可以是[1,2]这种。 There is an int 阅读全文
posted @ 2016-08-10 18:56
冰凌花花~
阅读(277)
评论(0)
推荐(0)

浙公网安备 33010602011771号