Dynamic Programming Pattern Leetcode Solutions Cppd