Target Sum

You are given an array nums and an integer target.

For every value in nums, choose exactly one sign: + or -, then evaluate the full expression.

Return how many different sign assignments produce a final value equal to target.

A different assignment means at least one position uses a different sign.

Examples
Input: [[1,1,1,1,1],3]
Output: 5
Hints

Target Sum

You are given an array `nums` and an integer `target`.