Partition Equal Subset Sum

Medium · Dynamic Programming · about 20 minutes

Asked at Meta, Amazon, Uber.

nums holds positive integers. Decide whether you can divide them into two groups whose totals are equal.

Related guides