Topcoder SRM 684 Div2. 500
Hello,
I tried to solve this problem using memoization (top-down DP) but the complexity of my code is too damn high!
Here is my code.
Can anyone help me solve this problem using memoization?