摘要:
1 class Solution 2 { 3 public: 4 bool order(string A) 5 { 6 for(int i = 0; i A[i+1]) 9 { 10 return false; 11 ... 阅读全文
摘要:
1 class Solution 2 { 3 public: 4 bool validMountainArray(vector& A) 5 { 6 if(A.size()A[maxIndex]) 13 maxIndex = i; 14 } 15 ... 阅读全文