How many days are there in a century?
How many days are in the century running from 1 January 2001 to 31 December 2100, inclusive?
Then compare with the previous century, 1 January 1901 to 31 December 2000. Are the two counts the same? If not, which one is longer and why?
A hint before you begin: "one hundred years" is not one fixed number of days.
Show a hint
A hundred years of 365 days, plus one day for each leap year. Count the leap years carefully: the rule has an exception and an exception to the exception.
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
Born on 29 February, how many birthdays by age 40?What day of the week was 1 January 2000?How many leap years from 1901 to 2100?Is your birthday on the same weekday next year?How often does a whole calendar repeat exactly?
All questions →