solulubeta
Sign in
NeetCode 150 / 2-D Dynamic Programming
14.05 · Problem

Target Sum

Medium DP over (index, running sum) 1 video LC 494 Pro

This problem is part of solulu Pro

Put a + or - in front of every number in nums and add them up. Return the number of sign assignments whose total equals target.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 115 of 150 · updated 2026-10-12