Fog Creek Software
Discussion Board




Palindrome

problem: this year on October 2, 2001, the date in MMDDYYYY format will be a palindrome (same forwards as backwards).
10/02/2001
when was the last date that this occurred on? (see if you can do it in your head!)

Is not the correct answer simply?
30/02/2003

Maria
Tuesday, October 19, 2004

I see...February does not have 30 days...

Maria
Tuesday, October 19, 2004

This is a shot in the dark:

12/31/1321 ??

Yeah, right, unless I'm right...
Wednesday, October 20, 2004

Maria, even worse in the format MMDDYYYYY 30/02/2003 would meen the 2nd day of the 30th month, so we're not even talkin about february ;)

I can't think of a later date than that the mystery guy shot in the dark though, seems about right to me

Christian Kamel
Wednesday, October 20, 2004

There is a later date than 12/31/1321.  But I won't spoil it for you by posting it here.

Link to the solution
http://www.techinterview.org/Solutions/fog0000000100.html

JHY
Wednesday, October 20, 2004

what about 04/02/2004 ?

Mark D
Wednesday, November 17, 2004

Its August 31st, 1380.
thats 08311380

Sandeep
Thursday, December 02, 2004

What about 11/11/1111
i.e. 11th november 1111

Nitin Prasad
Wednesday, December 29, 2004

*  Recent Topics

*  Fog Creek Home