Help needed to solve problem .Unable to understand editorial.

Revision en1, by arun_prasad, 2017-01-31 15:25:57

I was trying to solve this problem

problem link

however I was unable to understand the editorial to this problem.

Can someone please explain how to solve this problem using examples if possible ?

I am still unable to understand the sample output itself and what the question is asking exactly.

Thank you in advance :D :D

Tags unable to solve, help needed, #dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English arun_prasad 2017-01-31 15:25:57 444 Initial revision (published)