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
Apply
Size:
5
7
9
12
15
Random
Play
Pause
Step
Reset
Speed:
0.5x
1x
2x
4x
Step
0
Current Area
-
Max Area
0
Comparisons
0
Press "Step" or "Play" to start the animation.
Height Array
area = min(height[left], height[right]) * (right - left)