1518. Water Bottles
Previous1517. Find Users With Valid E-MailsNext1519. Number of Nodes in the Sub-Tree With the Same Label
Last updated
Last updated
https://leetcode.com/problems/water-bottles
Given numBottles
full water bottles, you can exchange numExchange
empty water bottles for one full water bottle.
The operation of drinking a full water bottle turns it into an empty bottle.
Return the maximum number of water bottles you can drink.
Example 1:
Example 2:
Example 3:
Example 4:
Constraints:
1 <= numBottles <= 100
2 <= numExchange <= 100