解析因为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