算法練習 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