This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ManacherAlgorithmImpl { | |
private int mLongestPalindromeLength; | |
private int mLongestPalindromeStart = -1; | |
public void findLongestPalindrome(String string) { | |
final int strlen = string.length(); | |
if (strlen == 0) { | |
mLongestPalindromeStart = -1; | |
mLongestPalindromeLength = 0; |