avinash007's blog

By avinash007, history, 4 weeks ago, In English

Can someone please give a detailed solution for the below problem as I am not able to understand the editorial. Problem

Also please use dp[l][r] as the minimum operation required to achieve the task. Link to Similar Problems would be appreciated

Tags help, dp
 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
4 weeks ago, # |
  Vote: I like it +11 Vote: I do not like it

Can't help you out there, but maybe since your rank is ~1500, you should solve some little bit easier problems than 2700 in difficulty

»
4 weeks ago, # |
  Vote: I like it +9 Vote: I do not like it

If you don't understand the editorial, I think that it is a good sign that the problem is too hard and you should return to it later. Solving problems out of your comfort zone is good, but if it is so hard that you can't even understand the solution when given it, then you are probably just wasting your time.