javascript-algorithms icon indicating copy to clipboard operation
javascript-algorithms copied to clipboard

Knapsack has error

Open LY1993 opened this issue 6 years ago • 6 comments

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()

LY1993 avatar Nov 16 '18 06:11 LY1993

More specifically: TypeError: Cannot read property '2' of undefined at Knapsack.solveZeroOneKnapsackProblem (<Path>\Knapsack.js:137:63)

ojchase avatar Apr 13 '19 20:04 ojchase

Is this still open ? If it is, I would like to work on it.

Satzyakiz avatar May 08 '20 06:05 Satzyakiz

@trekhleb is this still open?

etfaghaoubeid avatar Jun 03 '21 10:06 etfaghaoubeid

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.

Mars824 avatar Jul 03 '21 23:07 Mars824

Then unsubscribe instead of spamming.

lazarljubenovic avatar Jul 04 '21 07:07 lazarljubenovic

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 ?

Abhishek-90 avatar Nov 20 '21 07:11 Abhishek-90