Dynamic Programming

make changes: two related problems