So how long it takes to run is related to how many items I end up being able to fit into the knapsack.
所以,运行的时间是和我能够,装进背包的物品数目有关的。
I think that the issue there then is that the price is too high for the good,
我觉得问题在于物品的价格太高,
So I'm not going to take the item with an index of 2.
所以我不会选择,索引值为2的物品。
I've included item number 1, which has a value of 7. Right?
我已经装了1号物品,1号物品的值是7,对不对?
And then I can do another don't take branch.
然后我可以再走这边的,不应该装物品分支。
应用推荐