11.Container With Most Water
Find two lines, which, together with the x-axis forms a container, such that the container contains the most water

Input: height = [1,8,6,2,5,4,8,3,7]
Output: 49
Explanation: The above vertical lines are represented by array [1,8,6,2,5,4,8,3,7]
In this case,the max area of water (blue section) the container can contain is 49.Solution I : (Brute force, Find all possible area and check for max)
Solution II: (Using 2 pointer)
Last updated