Skip to content

Commit 4b0e0b9

Browse files
committed
Runtime: 42 ms (Top 62.11%) | Memory: 13.9 MB (Top 56.09%)
1 parent eea4786 commit 4b0e0b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
# Runtime: 42 ms (Top 62.11%) | Memory: 13.9 MB (Top 56.09%)
12
class Solution:
23
def fillCups(self, amount: List[int]) -> int:
3-
4+
45
count = 0
56
amount = sorted(amount, reverse=True)
67
while amount[0] > 0:
78
amount[0] -= 1
89
amount[1] -= 1
910
count += 1
1011
amount = sorted(amount, reverse=True)
11-
return count
12+
return count

0 commit comments

Comments
 (0)