The transfer used twice
transcript
A knapsack picks each item once. Your answer uses one twice. The loop direction is wrong.
Take a transfer with fee three and score one. Going up, it fills score one. Then it reads that cell for score two. Going down avoids this.
Set the fee cap to six. Going up, two copies cost six. It returns two. The truth is one, because only one copy exists.
Going down, each read is an old cell. Going up, a read may be a new cell. A new cell means the item is reused.
Start at the total score. Go down to the item's score.
Test one item with a big cap. The item should be used once. If the score doubles, flip the loop.
Test one item with a big cap. The item should be used once. The score should count once. If it doubles, flip the loop.
Each item once. Go down through the scores. Full breakdown in the lecture.