Find if a given sentence is a palindrome - MATLAB Cody - MATLAB Central

Problem 44512. Find if a given sentence is a palindrome

Difficulty:Rate

Given a string/character array, return true if the string is a palindrome else returns false.

For example:

sample_text = "Sore was I ere I saw Eros.";
isPalindrome(sample_text);
ans =
      True 

Solution Stats

28.24% Correct | 71.76% Incorrect
Last Solution submitted on Feb 09, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers33

Suggested Problems

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