All Questions
2 questions
2
votes
2
answers
216
views
Knapsack performance issue
I'm solving a knapsack problem here. It works, but gives time limit exceeds on a certain test case.
Problem statement
There are N
items, numbered 1,2,…,N. For each i (1≤i≤N), Item i has a weight of ...
3
votes
2
answers
174
views
Knapsack01 problem, written in c#
Is this code written in a decent style? Appreciate some feedback : )
...