We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a71618f commit c002bd5Copy full SHA for c002bd5
maths/maxBottlesDrunk.py
@@ -0,0 +1,8 @@
1
+class Solution(object):
2
+ def maxBottlesDrunk(self, numBottles, x):
3
+ ans = numBottles
4
+ while numBottles >= x:
5
+ numBottles -= x - 1
6
+ x += 1
7
+ ans += 1
8
+ return ans
0 commit comments