算法练习 Leetcode 力扣 416. Partition Equal Subset Sum 的Python解法
题目 题目链接 Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal. 给一个堆正整数, 能不能把这组数分成2部分使得每部分的和一样. 比如给定[1, 5, 5, 11], 那么可以分成[1, 5,…
Read more