update leetcode dp