Problem 416 · Medium

Partition Equal Subset Sum

0/1 knapsack DP targeting sum/2: dp[j] |= dp[j - num].

Open the interactive visualisation