problems in dynamic programming 948844