A palindrome is a sequence of characters which reads the same backward or forward, for instance

'a man a plan a canal panama'

is a palindrome. Write a function that,

a) given a string input, returns true or false depending on whether this string is a palindrome (up to white-spaces) or not.

b) The function's source code must be a palindrome.

Solution Stats

200 Solutions

37 Solvers

Last Solution submitted on May 28, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers37

Suggested Problems

More from this Author7

Community Treasure Hunt

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

Start Hunting!