Any hints for Problem — https://community.topcoder.com/stat?c=problem_statement&pm=8712 I have following dp state — dp[r][b][v] — the maximum chip obtained by having predicting r red cards, b black cards having v chips. Is this dp state correct? How to do transition?