Problem 1745 · Hard

Palindrome Partitioning IV

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

Open the interactive visualisation