Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knapsack has error #248

Open
LY1993 opened this issue Nov 16, 2018 · 6 comments
Open

Knapsack has error #248

LY1993 opened this issue Nov 16, 2018 · 6 comments
Labels
bug Something isn't working

Comments

@LY1993
Copy link

LY1993 commented Nov 16, 2018

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()
@trekhleb trekhleb added the bug Something isn't working label Nov 27, 2018
@ojchase
Copy link

ojchase commented Apr 13, 2019

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

@Satzyakiz
Copy link

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

@etfaghaoubeid
Copy link

@trekhleb is this still open?

@Mars824
Copy link

Mars824 commented Jul 3, 2021 via email

@lazarljubenovic
Copy link

Then unsubscribe instead of spamming.

@Abhishek-90
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants