0011. Container With Most Water

Find two lines that together with the x-axis forms a container with the most water

Brute Force
Two Pointers

Step

0

Current Area

-

Max Area

0

Comparisons

0
Press "Step" or "Play" to start the animation.
area = min(height[left], height[right]) * (right - left)