Container With Most Water
Medium
Two Pointers
Heights array — pick a preset or enter your own
Apply
[1,7,2,5,4,7,3,6]
[2,2,2]
[1,8,6,2,5,4,8,3,7]
[3,1,2,4,5]
Left pointer
Right pointer
Water area
Current area
0
Max area
0
Step
1/1
Press Play or step through the algorithm
← Prev
▶ Play
Next →
⟲ Reset
Speed
Python solution
— highlighted line tracks the current operation