I know we have to use dynamic programming but i wasn’t able to figure out the solution. Had read the analysis but it was a bit confusing. Can someone explain me the core algorithm behind it?
The link to problem: Kick Start - Google’s Coding Competitions
Peace!
Ps. I don’t want the code. I want to know the algorithm. Thank You