Container With Most Water — Two Pointers
Choose two bars from a row of heights so the water trapped between them, limited by the shorter, is as large as possible.
Two Pointers · Medium
Choose two bars from a row of heights so the water trapped between them, limited by the shorter, is as large as possible.
Two Pointers · Medium