<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knapsack Problem on Algorithm Solutions</title><link>https://algorithm.liangqin.ren/tags/knapsack-problem/</link><description>Recent content in Knapsack Problem on Algorithm Solutions</description><generator>Hugo -- gohugo.io</generator><lastBuildDate>Thu, 03 Sep 2026 17:18:53 -0500</lastBuildDate><atom:link href="https://algorithm.liangqin.ren/tags/knapsack-problem/index.xml" rel="self" type="application/rss+xml"/><item><title>416. Partition Equal Subset Sum</title><link>https://algorithm.liangqin.ren/leetcode/416/</link><pubDate>Thu, 03 Sep 2026 17:18:53 -0500</pubDate><guid>https://algorithm.liangqin.ren/leetcode/416/</guid><description>1. Description Given an integer array nums, return true if you can partition the array into two subsets such that the sum of the elements in both subsets is equal or false otherwise.
2. Example Example 1 Input: nums = [1,5,11,5]
Output: true
Explanation: The array can be partitioned as [1, 5, 5] and [11].
Example 2 Input: nums = [1,2,3,5]
Output: false
Explanation: The array cannot be partitioned into equal sum subsets.</description></item></channel></rss>