Python Forum
0 - 1 KnapSack problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
0 - 1 KnapSack problem
#2
I found some indentation errors I made and changed the code in line 43 and 44 and moved them one indentation to the left. The resulting Problem is that line 39 gives an "IndexError: List index out of range". Can anyone tell me why this is happening?
Reply


Messages In This Thread
0 - 1 KnapSack problem - by Stryker - Jan-20-2020, 09:39 PM
RE: 0 - 1 KnapSack problem - by Stryker - Jan-21-2020, 09:16 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020