Here is code to find palindrome in linear time: http://codepad.org/PMJzjpPJ
On Fri, Jun 18, 2010 at 5:28 AM, Chunyuan Ge <[email protected]> wrote: > good point, i am wrong, sorry > > > > On Fri, Jun 18, 2010 at 5:54 PM, Rohit Saraf > <[email protected]>wrote: > >> abcqwertycba >> >> So is abc a palindrome?? >> -------------------------------------------------- >> Rohit Saraf >> Second Year Undergraduate, >> Dept. of Computer Science and Engineering >> IIT Bombay >> http://www.cse.iitb.ac.in/~rohitfeb14 >> >> >> On Fri, Jun 18, 2010 at 3:08 PM, Chunyuan Ge <[email protected]> wrote: >> >>> Origin string a, reverse the string to get b >>> get the longest common string between a and b >>> >>> that's it. >>> >>> Chunyuan >>> >>> >>> On Thu, Jun 17, 2010 at 8:38 PM, debajyotisarma < >>> [email protected]> wrote: >>> >>>> Find the longest palindrome in the given string. >>>> Minimum time-space complexity required >>>> (i have not solved it so don't know what is min) >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]<algogeeks%[email protected]> >>>> . >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<algogeeks%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<algogeeks%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
