KMP is exact substring match, so this is tricky.. Best Regards Ashish Goel "Think positive and find fuel in failure" +919985813081 +919966006652
On Thu, Nov 10, 2011 at 6:05 PM, Amol Sharma <[email protected]> wrote: > this can be done by simple string matching...KMP algo..... > correct me if i am wrong !! > -- > > > Amol Sharma > Third Year Student > Computer Science and Engineering > MNNIT Allahabad > <http://gplus.to/amolsharma99> > <http://twitter.com/amolsharma99><http://in.linkedin.com/pub/amol-sharma/21/79b/507><http://youtube.com/amolsharma99> > > > > > > On Thu, Nov 10, 2011 at 8:03 AM, rahul sharma <[email protected]>wrote: > >> facebook visit DCE???wats package??? >> >> >> On Wed, Nov 9, 2011 at 9:22 PM, Decipher <[email protected]> wrote: >> >>> This question was asked by Facebook during their 2 hour online exam >>> (Only 1 question in 2 hour as per my junior) in DCE. >>> >>> Given a list of words wordlist on 1st line (no of words <= 100) and a >>> string qstr of len <= 1 million on 2nd line, print the index at qstr where >>> a continuous substring exists that contains all the given words in wordlist. >>> >>> Don't ask any further questions as I got this information from some >>> junior in my college. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Algorithm Geeks" group. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msg/algogeeks/-/JwSnPn-5WRUJ. >>> 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. >>> >> >> -- >> 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. >> > > -- > 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. > -- 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.
