Algorithm Atlas

Preparing your learning space

Checking your account, lessons, and saved progress. The server is starting after a long break. This first cold start may take 5–10 seconds

Container With Most Water: step-by-step visual explanation

Learn the Container With Most Water problem with a step-by-step DSA animation. Follow the Two Pointers solution with synced C#, Python, and Java code.

Two Pointers pattern

The markers can start together, begin at opposite ends, or move at different speeds.

Difficulty: Medium · Approach: Move the shorter side

Open Algorithm Atlas to watch the full interactive lesson and follow every execution step.

More Two Pointers lessons