You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line 30 in knapsack.py the range is hardcoded to be range(0,5). Does only work correctly for your instances with 5 items. Could be solved by using range(0, len(weights)).
The text was updated successfully, but these errors were encountered:
In line 30 in knapsack.py the range is hardcoded to be range(0,5). Does only work correctly for your instances with 5 items. Could be solved by using range(0, len(weights)).
The text was updated successfully, but these errors were encountered: