摘要: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu 阅读全文
posted @ 2018-03-09 20:59 yuanninesuns 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 这一段代码很简单的把01背包问题最后的最大值答案求出,下面这个函数用来从后往前求最优解 完整代码如下: 阅读全文
posted @ 2018-03-09 19:39 yuanninesuns 阅读(130) 评论(0) 推荐(0) 编辑