Link: https://leetcode.com/problems/container-with-most-water/
Solution:
Topics: two pointer
Intuition
Simple problem. Took me a minute to reason about the right approach. Two pointer was the final decision because it allows us to greedily “hold on” to the tallest walls.
Implementation