Cody

Solution 2153502

Submitted on 8 Mar 2020 by Asif Newaz
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = "Nella's simple hymn: ""I attain my help, Miss Allen."; y_correct = true; assert(isequal(isPalindrome(x),y_correct))

y1 = 'nellassimplehymniattainmyhelpmissallen' y2 = 'nellassimplehymniattainmyhelpmissallen'

2   Pass
x = "Deliver desserts,"" demanded Nemesis, ""emended, named, stressed, reviled."; y_correct = true; assert(isequal(isPalindrome(x),y_correct))

y1 = 'deliverdessertsdemandednemesisemendednamedstressedreviled' y2 = 'deliverdessertsdemandednemesisemendednamedstressedreviled'

3   Pass
x = "Dennis danced"; y_correct = false; assert(isequal(isPalindrome(x),y_correct))

y1 = 'dennisdanced' y2 = 'decnadsinned'

4   Pass
x = "Fred ate bread"; y_correct = false; assert(isequal(isPalindrome(x),y_correct))

y1 = 'fredatebread' y2 = 'daerbetaderf'

Suggested Problems