Cody

# Problem 216. Is this date a palindrome?emordnilap a etad siht sI

Solution 2200736

Submitted on 8 Apr 2020 by Michael Jarboe
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))

d1 = 734504 D1 = datetime 01-Jan-2011 D1 = datetime 010111 STRING = '010111' STRING = '01111' STRING = '1111' tf = logical 1

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

d1 = 4415 D1 = datetime 01-Feb-0012 D1 = datetime 020112 STRING = '020112' STRING = '02112' STRING = '2112' tf = logical 1

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

d1 = 709982 D1 = datetime 12-Nov-1943 D1 = datetime 111243 STRING = '111243' tf = logical 0

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

d1 = 37173 D1 = datetime 10-Oct-0101 D1 = datetime 101001 STRING = '101001' tf = logical 0