g152xx
  • g152xx
Given a list of words, L, that are all the same length, and a string, S, find the starting position of the substring of S that is a concatenation of each word in L exactly once and without any intervening characters. This substring will occur exactly once in S. The first line of input specifies L, it will contain between 1 and 100 space-separated words, each between 1 and 10 characters long. The second line of input specifies S, the line will contain a single word up to 1 million characters long. The characters in both L and S should be treated as case-sensitive.
Mathematics
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
katieb
  • katieb
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
g152xx
  • g152xx
Example: L: "fooo", "barr", "wing", "ding", "wing" S: "lingmindraboofooowingdingbarrwingmonkeypoundcake" fooowingdingbarrwing Answer: 13 L: "mon", "key" S: "monkey monkey Answer: 0 L: "a", "b", "c", "d", "e" S: "abcdfecdba" ecdba Answer: 5
mayankdevnani
  • mayankdevnani
http://interviewsutra.com/facebook/given-a-list-of-words-l-that-are-all-the-same-length-and-a-string-s-find-the-starting-position-of-the-substring-of-s-that-is-a-concatenation-of-each-word-in-l-exactly-once-and-without-any-interve.php
g152xx
  • g152xx
@mayankdevnani thanks but doenst have the code on the page. Found here something like mine : http://www.careercup.com/question?id=12332722

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

TuringTest
  • TuringTest
Please post this in the computer science section. Thanks.

Looking for something else?

Not the answer you are looking for? Search for more explanations.