DP problem help

I think Backtracking would help.

1 Like