Problem 11 · Medium

Container With Most Water

Use two pointers shrinking from the outside in to find the maximum area between two lines.

Open the interactive visualisation