maxArea(height){ let l = 0, r = height.length - 1; let max = 0; while (r > l){ if(height[l] > height[r]){ max = Math.max(height[r] * (r-l), max); r--; } else{ max = Math.max(height[l] * (r-l), max); l++; } } return max; },