Mindtree Wireless India Interview Question
Country: India
Interview Type: Written Test
As there are 52 weeks in a given year and each day appears once a week so by sure all the days appear atleast 52 times in a year. But as 52*7=364 and as there are 365 days a year in a non leap year and 366 days in a leap year so 2 situations arise.
a. If today is monday and it is 1st january of a non leap year so next year 1st january will be on tuesday. So monday will appear 53 times and the rest days 52 times thus accounting for 365 days
b. If today is monday and it is 1st january of a leap year then next year 1st january will occur on wednesday that is monday and tuesday will occur for 53-53 times thus accounting for 2 extra days of 366 days and the rest appears 52 times.
There are 52 weeks in a year. So a given day has to appear at least 52 times, with 2 exceptions.
- Murali Mohan July 01, 2013If X-day is the starting day in a non-leap year, then X day appears 53 times
if X-day is the starting day in a leap year, then X day and X+1 day both appear 53 times