Problem 416 · Medium
0/1 knapsack DP targeting sum/2: dp[j] |= dp[j - num].
Open the interactive visualisation