Problem 1616 · Medium

Split Two Strings to Make Palindrome

Check whether taking a prefix of one string and a suffix of the other can join into a palindrome. The visual pairs characters from the outside inward and marks where the mirror match stops.

Open the interactive visualisation