Born on 29 February, how many birthdays by age 40?
A child is born on 29 February 2000.
By the time they are forty years old (the day 29 February 2040 rolls around), how many actual 29 February birthdays have they had, counting the 2040 one but not the day they were born?
Watch the century rule: not every year divisible by 4 is a leap year.
Show a hint
List the leap years from 2004 to 2040. Is any of them skipped?
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
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
How many leap years from 1901 to 2100?How many weekdays appear 53 times in a year?What day of the week was 1 January 2000?How many days are there in a century?The month with exactly four of every weekdayWhich weekday does the 13th land on most often?
All questions →