Last updated 2 years ago
Was this helpful?
abba 这是parlindrome, abab跟abba是anagram
(L200)
(palindrome DP的最高境界)这里是求没重复的,另外在geeksforgeeks上看到了一种是有重复的