Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Quck one for a Friday afternoon.  RSS feed

 
Ryan McGuire
Ranch Hand
Posts: 1113
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just noticed that my odometer reads 74047, which is a palindromic number. If I always drive at exactly 55 miles per hour how long has it been since the previous palindromic odometer reading (to the closest minute).
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two hours.
 
W. Joe Smith
Ranch Hand
Posts: 710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the palindrome immediately before 74047 is 73937, making a difference of 110 miles, meaning exactly 2 hours driving time.

Bah! I was beat!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!