Saturday, November 19, 2011

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.


No comments :