And then I take as many raisins as will fit in and I leave. Right? I hope almost every one of you could figure out that was the right strategy.
然后我再尽量装葡萄干,最后我离开,对吧?,我希望你们每个人都发现了这是最优策略。
As soon as the available size goes to 0, I know I can't enter any more items into the memo, right?
一旦可装大小为0时我就知道,我不能再在memo中添加物品了?
Next item to be considered, I still have 5 pounds available.
再考虑下一个物品,我还可以再装5磅。
Because we had 5 and we're using all 5.
因为我们只能再装5磅,而我们把5磅全装满了。
And then I can do another don't take branch.
然后我可以再走这边的,不应该装物品分支。
应用推荐