Longest Chunked Palindrome Decomposition
Input: text = "ghiabcdefhelloadamhelloabcdefghi"
Output: 7
Explanation: We can split the string on "(ghi)(abcdef)(hello)(adam)(hello)(abcdef)(ghi)".Input: text = "merchant"
Output: 1
Explanation: We can split the string on "(merchant)".Input: text = "antaprezatepzapreanta"
Output: 11
Explanation: We can split the string on "(a)(nt)(a)(pre)(za)(tpe)(za)(pre)(a)(nt)(a)".Input: text = "aaa"
Output: 3
Explanation: We can split the string on "(a)(a)(a)".Last updated