Interesting problem
I have interesting problem from WCIP3G. I thought that is DP.
And in my DP I have 2 states.
dp[i][j] = answer for subsequence from i to j.
dp[i][j] = answer for subsequence from i to j
Transitions obviously will be dp[i + 1][j] and dp[i][j - 1].
But how it can be written?