Available question text
Given strings s and t, pick any substring of s and any substring of t, concatenate them in order, and return the length of the longest palindrome obtainable. The core challenge is efficiently handling palindromes that may lie entirely in one string or span the s/t boundary by matching characters from s with mirrored characters from t (n ≤ 1000).
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 3504. Longest Palindrome After Substring Concatenation II
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source