jokes apart...then i think it can be done using dynamic programming
using the similar approach of LCS but the time and space complexity
both will be N^2.....i am working on the pseudocode and post it within
a few moments if it works..

On 6/29/11, Swathi <chukka.swa...@gmail.com> wrote:
> I dont know why people reply in plain words.. I personally had this
> experience and i was asked to code but i couldn't
>
> On Wed, Jun 29, 2011 at 10:53 PM, Piyush Sinha
> <ecstasy.piy...@gmail.com>wrote:
>
>> I dnt think any company is gonna ask u to code suffix tree..:P :P
>>
>> On 6/29/11, Swathi <chukka.swa...@gmail.com> wrote:
>> > It does but i am asked to code.. if you know the code for suffix tree
>> then
>> > please provide..
>> >
>> > On Wed, Jun 29, 2011 at 10:30 PM, Piyush Sinha
>> > <ecstasy.piy...@gmail.com>wrote:
>> >
>> >> i think suffix tres will do the job if i have not misunderstood the
>> >> question...
>> >>
>> >> On 6/29/11, Swathi <chukka.swa...@gmail.com> wrote:
>> >> > Given a string (assume there no spaces or punctuations), write a code
>> >> that
>> >> > returns the max. length of the string that has repeated more than
>> once.
>> >> >
>> >> > Thanks,
>> >> > Swathi
>> >> >
>> >> > --
>> >> > 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.
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> *Piyush Sinha*
>> >> *IIIT, Allahabad*
>> >> *+91-8792136657*
>> >> *+91-7483122727*
>> >> *https://www.facebook.com/profile.php?id=100000655377926 *
>> >>
>> >> --
>> >> 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.
>> >>
>> >>
>> >
>> > --
>> > 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.
>> >
>> >
>>
>>
>> --
>> *Piyush Sinha*
>> *IIIT, Allahabad*
>> *+91-8792136657*
>> *+91-7483122727*
>> *https://www.facebook.com/profile.php?id=100000655377926 *
>>
>> --
>> 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.
>>
>>
>
> --
> 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.
>
>


-- 
*Piyush Sinha*
*IIIT, Allahabad*
*+91-8792136657*
*+91-7483122727*
*https://www.facebook.com/profile.php?id=100000655377926 *

-- 
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.

Reply via email to