Practice Problem

Target Sum

Difficulty: Medium

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