Find the palindrome - MATLAB Cody - MATLAB Central

Problem 75. Find the palindrome

Difficulty:Rate

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

So when

 a = 'xkayakyy';

you should return

 b = 'kayak';

Solution Stats

66.49% Correct | 33.51% Incorrect
Last Solution submitted on Jun 22, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
3

Problem Recent Solvers1640

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!