DEV Community

Discussion on: Knapsack problem algorithms for my real-life carry-on knapsack

Collapse
 
victoria profile image
Victoria Drake

In short, yes. To carry the analogy through I left all the items in, but as a practical exercise, removing the mandatory ones from the calculation makes more sense. :)