โ† Amazon questions

Minimum length subparagraph containing all target words

Filed under Amazon

Given a text paragraph and a list of N distinct words, find the minimum-length contiguous window (subparagraph) containing all N words in any order.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.