You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
As with any good dp problem that uses palindromes, try building the palindrome from the edges
Hint 2
The prime point is to check that no two adjacent characters are equal, so save the past character while building the palindrome.