DP and problems