You are viewing a single comment's thread. Return to all comments →
I don't think it's a true dp as we are doing reinforcement in the dp array which is not done generally. I also had somewhat same solution but my array name was not dp as mentioned earlier.
9 2 3 6 5 4 3 2 2 2
find out the max for each reasult
brother your maths need to be brushed up
first off all you havn't included the last (1) in your result and even if you have not included, you haven't sum up all the values right
2+1+2+5+4+3+2+1+1 = 21