Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try "simulating" the process.
Since watering each plant takes the same amount of time, where will Alice and Bob meet if they start watering the plants simultaneously? How can you use this to optimize your solution?
What will you do when both Alice and Bob have to water the same plant?