AlgoMaster Logo

Target Sum

nums=[1, 1, 1, 1, 1],target=3
0 / 49
algomaster.io
Step:Assign + or - to every num so the expression evaluates to 3. Count the ways.