Palindrome Partitioning IV
Mark every palindromic substring in a table, then try every pair of cuts to see whether three palindromes cover the string.
Mark every palindromic substring in a table, then try every pair of cuts to see whether three palindromes cover the string.