Problem 2105 · Medium

Watering Plants II

Water plants from both ends with the fewest required refills.

Open the interactive visualisation