#494

Target Sum

medium· 2-D DPruns: 0

You are given an integer array nums and an integer target. You want to build an expression out of nums by adding one of '+' or '-' before each integer and then concatenating them. Return the number of different expressions you can build that evaluate to target.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.