Longest Palindrome Substring

Find the longest palindromic substring of a given string.

Medium5/15/2024

Problem statement

Given a string of random lowercase characters, find the longest palindromic substring. A palindrome is a word that reads the same backward as forward. For example, racecar is a palindrome. In the case of multiple palindromes with the same length, return the first one found.

Problem leaderboard

#
Size
%
Users
#1
76 c.
Top 10%
SephQ
#2
97 c.
Top 20%
voytxt
#3
100 c.
Top 40%
helbling
Natanaelel
#4
122 c.
Top 50%
Thomasdcrt
#5
124 c.
Top 60%
alexisab
#6
149 c.
Top 70%
maximec-indy
#7
189 c.
Top 80%
ComputerKWasTaken
#8
717 c.
Top 90%
Sidd5arth
#9
1326 c.
Top 100%
Alex