← Questions

Concatenated words

0
AmazonCodingLast asked Oct 2026

Given a list of distinct words, return every word that can be split into two or more pieces that are each a word in the list (the same word may be used more than once). A shorter variant asks only for the words made of exactly two other words from the list.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding