Practice
/

Target Sum

Target Sum

Given an integer array and a target, assign '+' or '-' to each element and count the number of ways to achieve the target sum.

Premium Content

Create a free account, then unlock this problem and the entire premium catalog with a one-time CodeSnatch Premium purchase.

Already have an account with premium access? Sign in to continue.