python leetcode 416. Partition Equal Subset Sum
每个数都可以取或不取,用字典存储已经尝试过的和class Solution: def canPartition(self, nums): """ :type nums: List[int] :rtype: bool """ sumn=sum(nums) if sumn&1==1