题盛专题

Python | Leetcode Python题解之第11题盛最多水的容器

题目: 题解: class Solution:def maxArea(self, height: List[int]) -> int:l, r = 0, len(height) - 1ans = 0while l < r:area = min(height[l], height[r]) * (r - l)ans = max(ans, area)if height[l] <= height[