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.33% Correct | 33.67% Incorrect
Last Solution submitted on Mar 05, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers1626

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!
Go to top of page