• 2024-07-21162. 寻找峰值
    题目链接:法一、暴力\(O(n)\)classSolution{public:intfindPeakElement(vector<int>&nums){intn=nums.size();if(n==1)return0;if(n==2){if(nums[0]<nums[1])return1;elseif(nu