Assign + or - to every element of nums; count the assignments whose total equals target.
+
-
nums
target
Input
Output: the number of ways.
1 1 1 1 1 3
5
1 1
1
Run your code against the sample tests, or Submit to run the full suite.