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

So when

 a = 'xkayakyy';

you should return

 b = 'kayak';

Solution Stats

2818 Solutions

1662 Solvers

Last Solution submitted on Jan 06, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers1662

Suggested Problems

More from this Author96

Problem Tags

Community Treasure Hunt

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

Start Hunting!