Skip to content

Commit cad94b1

Browse files
Merge pull request #3025 from Knackii/patch-1
RoadMap: Koko Eating Bananas - Fix division betwen 2 integers returning integer
2 parents 9d924f3 + defadfc commit cad94b1

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)