Cody

Solution 219437

Submitted on 20 Mar 2013 by andrea84
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
%% d = datenum('01-Jan-2011 02:02:02',0); tf = true; assert(isequal(isPalindrome(d),tf)) d = datenum('02/01/12',2); tf = true; assert(isequal(isPalindrome(d),tf)) d = datenum('12-Nov-1943',1); tf = false; assert(isequal(isPalindrome(d),tf)) d = datenum('10/10/01',2); tf = false; assert(isequal(isPalindrome(d),tf))
x = 01/01/11 x = 1 1 1 1 ans = 1 x = 02/01/12 x = 2 1 1 2 ans = 1 x = 11/12/43 t = 0 t = 0 0 t = 0 0 0 ans = 0 x = 10/10/01 t = 1 1 0 ans = 0