1518. Water Bottles
https://leetcode.com/problems/water-bottles
Description
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:

**Input:** numBottles = 9, numExchange = 3
**Output:** 13
**Explanation:** You can exchange 3 empty bottles to get 1 full water bottle.
Number of water bottles you can drink: 9 + 3 + 1 = 13.Example 2:

Example 3:
Example 4:
Constraints:
1 <= numBottles <= 1002 <= numExchange <= 100
ac
Previous1517. Find Users With Valid E-MailsNext1519. Number of Nodes in the Sub-Tree With the Same Label
Last updated
Was this helpful?