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

So when

 a = 'xkayakyy';

you should return

 b = 'kayak';

Solution Stats

2820 Solutions

1665 Solvers

Last Solution submitted on Apr 20, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers1665

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!