Fade to Solo
Two Pointers

Container With Most Water

30 MINMleetcode ↗

Problem

You're given a list of heights, one per vertical line. Pick two lines that, together with the x-axis, form a container — maximize the water it can hold (width between the lines times the shorter of the two heights).

30 MIN00:00unlocks in 30:00
locked30:00 left