Today, I solved LPS.
At first, I tried to solve it using LCS by reversing the string and comparing it with the original. But that approach didn't work.
Then I realized that expanding around the center was simpler. My solution is O(n²), but it's simple and intuitive.