LeetCode MEDIUM 11 Container With Most Water Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Container With Most Water
- Main tags:
Array,Two Pointers,Greedy
What the problem is really asking
The input is an array of heights. Each height represents a vertical line drawn at that index.
The task is to pick two lines that, together with the x-axis, form a container that holds the most water.
Continue ...