Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit78249ed

Browse files
authored
Fix a typo preventing the code from running
Mid is named (k) and not (m)
1 parentc50d6fa commit78249ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎python/875-Koko-Eating-Bananas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def minEatingSpeed(self, piles: List[int], h: int) -> int:
1111
totalTime+=math.ceil(p/k)
1212
iftotalTime<=h:
1313
res=min(res,k)
14-
r=m-1
14+
r=k-1
1515
else:
16-
l=m+1
16+
l=k+1
1717
returnres

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp