Find Peak Element
解析因为nums[i]!=nums[i+1]并且nums[-1]=nums[n]=-∞;所以数组形状必是一个或多个Λ。
参考:https://discuss.leetcode.com/topic/5848/o-logn-solution-javacode
https://discuss.leetcode.com/topic/5724/find-the-maximum-by-binary-search-recursion-and-iteration
posted on 2016-07-29 15:59 qiaoshanzi 阅读(112) 评论(0) 编辑 收藏 举报