mediumJS ES6+#118

Palabrador (word overlapping)

Prompt

Given words, find the overlapping segment between the end of one word and the start of the next to form a new combined word. Example: ["abc","bcd","cde"] -> "abcde" (bc overlaps, cd overlaps). Words with no overlap just concatenate.

Hints

Solution

Your Code

10 min

Tests

Click Run to test your code