题目乍一看挺复杂的,其实在找最小值
class Solution {
public:
int minArray(vector<int>& numbers) {
int n=numbers.size();
for(int i=1;i<n;i++){
if(numbers[i-1]>numbers[i]){
return numbers[i];
}
}
return numbers[0];
}
};