Topcoder SRM 665 Div1 Medium

Revision en1, by send_nodes, 2015-08-17 05:22:37

Hi, I was having some trouble on figuring out the solution to this

It's obviously some sort of DP, and by looking at some code, I can tell that they are using left and right pointers, but I am unable to grasp the overall solution. Could someone please let me know the solution :D

Tags topcoder

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English send_nodes 2015-08-17 05:22:37 377 Initial revision (published)