标签:amp mount array end max 问题 public code element
1 class Solution 2 { 3 public: 4 int peakIndexInMountainArray(vector<int>& A) 5 { 6 return max_element(A.begin(),A.end())-A.begin(); 7 } 8 };
这题很简单,问题不大。
852. Peak Index in a Mountain Array
标签:amp mount array end max 问题 public code element
原文地址:https://www.cnblogs.com/zhuangbijingdeboke/p/9193637.html