✅ why does the test case fail?
This is from a longest palindrome puzzle on LeetCode https://leetcode.com/problems/longest-palindrome/solutions/
I am learning from a bunch of solutions, but I could not get why this solution fails the test case (as per screenshot below).
Here's the code I am experimenting. Could anyone kindly give me some clue?
I am learning from a bunch of solutions, but I could not get why this solution fails the test case (as per screenshot below).
Here's the code I am experimenting. Could anyone kindly give me some clue?

LeetCode
Longest Palindrome - Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
