Problem 3503 · Medium

Longest Palindrome After Substring Concatenation I

Try every substring of s followed by every substring of t and keep the longest concatenation that reads the same both ways.

Open the interactive visualisation