Skip to content

Commit f918257

Browse files
Update algorithms/search/binary_search/divide_chocolate/__init__.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 06f1fe2 commit f918257

File tree

1 file changed

+1
-1
lines changed
  • algorithms/search/binary_search/divide_chocolate

1 file changed

+1
-1
lines changed

algorithms/search/binary_search/divide_chocolate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def maximize_sweetness_2(sweetness: List[int], k: int) -> int:
5454
return result
5555

5656

57-
def can_divide(sweetness: List[int], k: int, min_sweetness: int):
57+
def can_divide(sweetness: List[int], k: int, min_sweetness: int) -> bool:
5858
total_sweetness, pieces = 0, 0
5959
for sweet in sweetness:
6060
total_sweetness += sweet

0 commit comments

Comments
 (0)