The npr radio show car talk always offers a puzzle to solve


Question: The NPR radio show Car Talk always offers a puzzle to solve. Occasionally, one can be solved with a program. Try this one: My car's odometer measures distance traveled in whole numbers-no tenths of miles-up to 999,999. Last week I was driving along on the freeway and noticed that the last four digits, but not the last five digits, formed a palindrome; that is, it read the same backward as forward (e.g., 1221). After one mile went by, though, the last five digits did form a palindrome; and, after one more mile, the middle four digits formed a palindrome. Finally, when the third mile rolled over, all six digits formed a palindrome. What was my mileage at the time I first noticed all these palindromes?

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: The npr radio show car talk always offers a puzzle to solve
Reference No:- TGS02475128

Now Priced at $15 (50% Discount)

Recommended (96%)

Rated (4.8/5)