← Expedia questions

Longest palindrome by concatenating two-letter words

Filed under Expedia

Given an array of strings `words` where each string consists of exactly two lowercase English letters, construct the longest possible palindrome by concatenating some of these words. Each word can be…

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 Expedia questions

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