Cody

Solution 2115718

Submitted on 3 Feb 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
d = datenum('01-Jan-2011 02:02:02',0); tf = true; assert(isequal(isPalindrome(d),tf))

a = 2011 1 1 2 2 2 x = '1111'

2   Pass
d = datenum('02/01/12',2); tf = true; assert(isequal(isPalindrome(d),tf))

a = 12 2 1 0 0 0 x = '2112'

3   Pass
d = datenum('12-Nov-1943',1); tf = false; assert(isequal(isPalindrome(d),tf))

a = 1943 11 12 0 0 0 x = '111243'

4   Pass
d = datenum('10/10/01',2); tf = false; assert(isequal(isPalindrome(d),tf))

a = 101 10 10 0 0 0 x = '101001'