再學動態規劃之 上01揹包

leetcode: https://leetcode.com/problems/partition-equal-subset-sum/description/ 寫了之後,發現這題跟01揹包還有點區別。但是寫看這個吧。 暴力搜索的方法。就是每個取或者不去。 class Solution(object): def getS(self, arr, index, target): if
相關文章
相關標籤/搜索