Count the ways to assign + or - to each number so the expression equals target.
Write count_target(nums, target).
Starter:
def count_target(nums, target):
# TODO
pass
Solve it interactively in your browser (no setup), check your answer instantly, and keep your daily streak going on IWTLP: https://iwtlp.com/challenge
Top comments (0)