Substring with concatenation of all words

0
Remix

Given a string and a list of words of equal length, return every start index where a substring is some concatenation of all the words, each used exactly once. Use a sliding window over word-sized steps.

AmazonTechnical phone screenLast asked Jul 2025
No answer yet. Write the first one; the best answer gets endorsed.