poj1141. DP. Brackets Sequence. Compare with other DP problems like palindromes, parentheses