Qm

Palindromic dates in the 2020s

Write a date as eight digits in the order day, month, year: for example 6 September 2026 is 06092026.

How many dates from 1 January 2020 to 31 December 2029 are palindromes, reading the same forwards and backwards? List them.

Show a hint

The year 202X reversed gives the day and month. Reverse "202X" and see whether the result is a legal day-and-month.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Born on 29 February, how many birthdays by age 40?The book that took 792 digits to numberThe sum of all digits from 1 to a millionThe month with exactly four of every weekdayFive Fridays, five Saturdays and five Sundays
All questions →