Hey guys, so am working on this knapsack problem but i don't get the max profit correct. I run the code on this input:
4
16
1 40 2
2 30 5
3 50 10
4 10 5
The answer should be 90 however I get...
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: shabbs Search: Search took 0.01 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |