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

Find two lines that together with the x-axis form a container, such that the container contains the most water.

Example 1:
Input: [1,8,6,2,5,4,8,3,7]
Output: 49
Input
arr =[1,8,6,2,5,4,8,3,7]
Max Area Found

0

Current Area

-

10L8162235445863778R
Variables
VariableValue
l0
r8
maxArea0
DepthFunction Call
Stack empty
0/41