Need Help in Solving DP Problem !!

Revision en1, by viralm, 2017-01-02 12:07:49

How to solve this problem — http://codeforces.me/problemset/problem/346/B ? I am not able to understand much by reading the editorial. Please Help!!

Tags dp, strings, z-algorithm, kmp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English viralm 2017-01-02 12:08:29 3
en1 English viralm 2017-01-02 12:07:49 189 Initial revision (published)