mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 06:23:08 +08:00

* Added Manacher Algorithm * Formatted ManacherTest.java * Formatted Manacher.java * Refactor: Update Manacher's algorithm tests and improve readability - Added parameterized tests for longestPalindrome, empty cases, complex cases, and sentence palindromes. - Removed unnecessary comments for cleaner code. - Renamed variable `p` to `palindromeLengths` for clarity based on code review feedback. --------- Co-authored-by: Ionut Hodoroaga <ionut.hodoroaga20@gmail.com>