@@ -0,0 +1,708 @@
+package problems;%0A%0Apublic class ContainerWithMostWater %7B%0A    public int maxArea(int%5B%5D height) %7B%0A        if (height.length %3C= 1)%0A            return 0;%0A%0A        int a = 0, b = height.length - 1;%0A        int max = 0;%0A        while (b %3E a) %7B%0A            int volumn = Math.min(height%5Ba%5D, height%5Bb%5D) * (b - a);%0A            if (volumn %3E max)%0A                max = volumn;%0A            if (height%5Ba%5D %3C= height%5Bb%5D)%0A                a++;%0A            else%0A                b--;%0A        %7D%0A        return max;%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        ContainerWithMostWater cw = new ContainerWithMostWater();%0A        int%5B%5D height = %7B1, 3, 2, 5, 3%7D;%0A        System.out.println(cw.maxArea(height));%0A    %7D%0A%7D%0A

Add Container with Most Water