Mindtree Wireless India Interview Question


Country: India
Interview Type: Written Test




Comment hidden because of low score. Click to expand.
2
of 6 vote

There are 52 weeks in a year. So a given day has to appear at least 52 times, with 2 exceptions.

If 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

- Murali Mohan July 01, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

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.

- vgeek July 01, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More