Skip to content

Conversation

100mya
Copy link

@100mya 100mya commented Oct 13, 2023

created knapsack.js - solving knapsack problem using backtracking algorithm

Copy link
Collaborator

@appgurueu appgurueu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The class is unnecessary. Refactor this to be a single function which gets values, weights, and capacity as parameters, and returns the max. knapsack value.
  • Needs tests and a JSDoc comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants