//url:https://leetcode.com/problems/peak-index-in-a-mountain-array/description/
class Solution {
public:
int peakIndexInMountainArray(vector& A) {
int size=A.size();
for(int i=0;iA[i+1])
return i;
}
}
};