← All tags

#greedy

1 entry tagged #greedy

  • Container With Most Water

    Post · Mar 30, 2026

    A row of walls, two pointers starting at the widest container, and a proof that moving the taller wall can never beat what you already have, so only the shorter side is ever worth moving.