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

Commitd11bc78

Browse files
authored
Merge pull requestneetcode-gh#1238 from MHamiid/patch-1
Fix a typo preventing the code from running
2 parents1ba9d39 +78249ed commitd11bc78

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