Sir I understood the recurrence used in forward phase, but the one for backward phase, how did we concluded that it is same as that of forward phase?
At 7:00 to 8:00 in Calvin's Game
@pangatt4,
Why would the recurrence change, its exactly same type of moves, just in opposite direction?
Yes, we have the same moves but in opposite direction, so shouldn’t that change indices as a[i]+max(dp[i+1], dp[i+2]). (ie instead of minus, plus sign)?