@Lucifier. i guess we both are understanding this problem differently :- given question is :- Given a string of length N, find whether there exits an even length palindrome substring.
i am understanding it as taking an even length substring and finding if there exists palindrome of this substring anywhere in the given string. str =* abcd*trw*dcba* for this i find even lenght substr *abcd *and then find it palindrome *dcba*. hence even length palindrome of given substring is present. you are taking it differently which would be finding an even length sub string which is a palindrome. in your case. str = tye*abcddcba*opl even length palindrome found = *abcddcba * -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.