Skip to content

Commit 2fb82e2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b0a5d6d commit 2fb82e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: greedy_methods/fractional_knapsack.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
# Reference Link: https://en.wikipedia.org/wiki/Continuous_knapsack_problem
55

66

7-
def frac_knapsack(values: list[int], weights: list[int], capacity: int, max_items: int) -> float:
7+
def frac_knapsack(
8+
values: list[int], weights: list[int], capacity: int, max_items: int
9+
) -> float:
810
"""
911
This function implements fractional knapsack problem.
1012

0 commit comments

Comments
 (0)