代码
int findPeakElement(int* nums, int numsSize){
int start = 0;
int end = numsSize-1;
int mind = 0;
while(start<end){
mind = (start+end)/2;
if(nums[mind]>nums[mind+1])
end = mind;
else
start = mind+1;
}
return end;
}