[SPOJ] EPALIN Z-ALGO SOLUTION GIVING WRONG ANSWER

Revision en2, by i_love_emilia_clarke, 2015-11-09 22:38:03

Hi, Codeforces folks, i am stuck at this problem LINK, The problem seems to be quite simple, you just have to make a string palindrome adding minimum number of characters at the end, so basically we need to find the longest suffix palindrome and then add the remaining character at the end. My solution implements the same here is the LINK, i am not able to get on what test cases it is giving me wrong solution. Please Help me correcting the code or suggesting me some test-case so that i can figure out. :)

Tags spoj, z-algorithm, wrong answer

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English i_love_emilia_clarke 2015-11-09 22:38:03 14 Tiny change: 'the [LINK](http://id' -> 'the [LINK]\n\n[cut]\n\n(http://id' (published)
en1 English i_love_emilia_clarke 2015-11-09 22:35:49 627 Initial revision (saved to drafts)