Problema Solution
between Jan 1, 2000 and Dec 31, 2099, how many such dates occur where the month,day and two digit year are three consesutive integers in ascending order?
Answer provided by our tutors
the month can have values {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
so the three consesutive integers in ascending order will be
month, day, 2-digit year
1, 2, 03
2, 3, 04
3, 4, 05
4, 5, 06
5, 6, 07
6, 7, 08
7, 8, 09
8, 9, 10
9, 10, 11
10, 11, 12
11, 12, 13
12, 13, 14
there are 12 such dates.