I have a code that generate some combinations for a specific sum from a given data set. This code has two errors.
1. code does not look into data. it generates
2. Code generate those combinations for which sum is greater than target value.
e.g first combination code generates is 3+7+10+12+12
This wrong by two means sum is 1) 44 while we need 40 2) 12 is not in data.
Please Login or Register to view this content.
Bookmarks