⬡
Subset Sum Visualizer
Step through the DP table — watch each cell fill and the subset get reconstructed
Pseudocode
←
▶
→
↻ Reset
Speed
Press Next to begin
DP Table
— dp[i][s] = can we form sum
s
using first
i
numbers?
nums[]
result[]
— reconstructed subset
Variables
Edit Input
nums array
comma-separated integers, e.g. 3, 34, 4, 12, 5, 2
Target sum
Apply & Run →