javascript-algorithms
javascript-algorithms copied to clipboard
Knapsack has error
var uu = [
new KnapsackItem({ value: 3, weight: 2 }),
new KnapsackItem({ value: 4, weight: 3 }),
new KnapsackItem({ value: 5, weight: 4 }),
new KnapsackItem({ value: 7, weight: 5 }),
];
var b = new Knapsack(uu, 7);
b.solveZeroOneKnapsackProblem()
More specifically: TypeError: Cannot read property '2' of undefined at Knapsack.solveZeroOneKnapsackProblem (<Path>\Knapsack.js:137:63)
Is this still open ? If it is, I would like to work on it.
@trekhleb is this still open?
Stop emailing me
Sent from my iPhone
On Jun 3, 2021, at 00:32, Etfagha oubeid Elatigh @.***> wrote: @trekhleb is this still open?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Then unsubscribe instead of spamming.
Hello, I see this issue is still open. Can I work on it? I have just started with open source contribution. Can anyone tell on how to reproduce the bug ?