Solve 2-3_longest-increasing-subsequence with another dp solution.