Mental Model
We want to find two lines that hold the most water between them by checking pairs from the edges inward.
Analogy: Imagine two people standing on opposite ends of a riverbank holding a rope. The water they can hold between them depends on the shorter person and the distance between them. Moving the shorter person inward might find a better spot to hold more water.
height array: [1] [8] [6] [2] [5] [4] [8] [3] [7] indexes: 0 1 2 3 4 5 6 7 8 left pointer ↑ right pointer ↑
