Skip to content
All tags

#greedy

1 entry tagged #greedy

  • Container With Most Water

    Post · Mar 30, 2026

    Pick two walls from a row so the water between them is as large as possible. Checking every pair works, but one observation about the shorter wall makes it a single pass.