Siva wrote: > Googmeister, > > yours is the optimal solution...i have a trivial question here...whats > the first trivial match that needs to be ignored...
Sorry about that - ignore the part about "skipping the first trivial match." > suppose P= abcd and S=bcda the concatenated string is 'abcdabcd'...here > the first match is the one that we need to check for...and it obviously > shd not be ignored...am i missin something here.. > > thanks No, you've got it just right! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
