双指针入门题 class Solution { public: /** * max water * @param arr int整型vector the array * @return long长整型 */ long long maxWater(vector<int>& arr) { long long res = 0; int l = 0; int _max = arr[0]; for(int r=1;r<arr.size();r++){ ...