Skip to content

Commit 06edbaf

Browse files
committed
Merge branch 'fractional-knapsack' of https://github.com/Hardvan/Python into fractional-knapsack
2 parents f647070 + 2fb82e2 commit 06edbaf

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)