Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2131. Longest Palindrome by Concatenating Two Letter Words
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.