Target Sum — 2-D DP

Count the ways to label each point value as plus or minus so the signed total equals a given target.

2-D DP · Medium

More in 2-D DP

All algorithm problems