Longest palindrome starting from left side
Given a string, find the longest length of palindrome starting from the left. For example: abaeab, the longest from left is aba, so return 3. abcbaef, the longest from left is abcba, so return 5. ababa, the longest from left is ababa, so return 5. One of the solution is to use rolling hash, which… Read More »