Skip to content

Commit b0a5d6d

Browse files
Hardvancclauss
andauthored
Add self-documenting variable names
Co-authored-by: Christian Clauss <[email protected]>
1 parent 4d24580 commit b0a5d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: greedy_methods/fractional_knapsack.py

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

66

7-
def frac_knapsack(vl: list, wt: list, w: int, n: int) -> float:
7+
def frac_knapsack(values: list[int], weights: list[int], capacity: int, max_items: int) -> float:
88
"""
99
This function implements fractional knapsack problem.
1010

0 commit comments

Comments
 (0)