Dynamic Programming Patterns Leetcode Contest