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

199 Solutions

36 Solvers

Last Solution submitted on Dec 08, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers36

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!