Given the string a, find the longest palindromic sub-string b.

So when

 a = 'xkayakyy';

you should return

 b = 'kayak';

Solution Stats

2823 Solutions

1668 Solvers

Last Solution submitted on May 06, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Group


Problem Recent Solvers1668

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!