← ALL NOTES
Math

1518. Water Bottles

You start with numBottles full bottles; every numExchange empties trade for one full bottle. Find the maximum bottles you can drink. Simulate rounds: drink all full bottles, exchange the empties,…

Loading…