Today was the last contest of the ICO preparatory series. I would really like some feedback on how you guys liked the series and also if something similar in the future is something you’d look forward to.
Also, please do comment on my problems that I had contributed for this, you can find them here.
As a beginner I found the questions just perfect. The perfect blend of difficult and mind teasing questions which you would expect in the real ICO. Great work in the choice of questions.
The dp was dp[i][k] = max/min(dp[j][k-1]+minp[j]*maxq[i])
You can see that these can be treated like lines. This suggests convex hull optimization. But you will need to store K sets of lines and for min you will have to do backward DP while for max you will have to do forward DP. Some people also solved it using the divide and conquer optimization. You will find greater details in the editorials. I hope you liked the problem.