Available question text
Given a list of two-letter words, build the longest palindrome by selecting words so that reverse pairs (e.g., "ab" and "ba") contribute 4 characters each and at most one identical-letter word (e.g., "aa") can sit in the center for +2. The core challenge is counting and matching reverse pairs and optionally placing a single symmetric word as the center to maximize length.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2131. Longest Palindrome by Concatenating Two Letter Words
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source