Skip to content

Commit defadfc

Browse files
authored
Fix division betwen 2 integers returning integer
Fix the code so that leetcode accepts it as of 2023-09-23.
1 parent 9d924f3 commit defadfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/0875-koko-eating-bananas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def minEatingSpeed(self, piles: List[int], h: int) -> int:
88

99
totalTime = 0
1010
for p in piles:
11-
totalTime += math.ceil(p / k)
11+
totalTime += math.ceil(float(p) / k)
1212
if totalTime <= h:
1313
res = k
1414
r = k - 1

0 commit comments

Comments
 (0)