11. Container With Most Water

class Solution(object):
    def maxArea(self, height):
        """
        :type height: List[int]
        :rtype: int
        """
        if len(height)<2:return 0
        
        left,right=0,len(height)-1
        res,curr=0,0
    
        while left

你可能感兴趣的:(11. Container With Most Water)