Problem 1518 · Easy

Water Bottles

Count how many bottles can be drunk when empty bottles can be exchanged for new full ones. The visual shows drink and exchange steps reducing the empty count.

Open the interactive visualisation