Container With Most Water
Find two lines that together with the x-axis forms a container with maximum water.
Approach: Two Pointers (Greedy)
Click play to start
Step 0 / 0
Press play to start the visualization.
1×
Find two lines that together with the x-axis forms a container with maximum water.