11. Container With Most Water

class Solution: def maxArea(self, height): left, right = 0, len(height)-1 water = 0 while left <= right: water = max(water, (right-left)*min(height[left], heigh
相關文章
相關標籤/搜索