Skip to content

Conversation

Tsurya06
Copy link

The problem is to find the longest palindromic substring within a given string. The optimal solution uses an expand around center approach, where each character (and the gap between every two characters) is treated as a possible center for palindromes. The algorithm expands outward from each center, identifying the longest palindrome, and updates the result if a longer palindrome is found. This approach is efficient with O(n2) time complexity and does not require additional space.

@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Oct 25, 2024
@cclauss
Copy link
Member

cclauss commented Nov 1, 2024

Closing tests_are_failing PRs to prepare for Hacktoberfest

@cclauss cclauss closed this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants