Microsoft Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
7
of 1 vote

burn rope at both the end simultaneously. it ll burn in 30 mins. when the first rope completes Then burn the other rope at one end.it ll burn in 1 hour making a total of 1.5 hrs

- Anonymous April 05, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

This solution seems convincing when the ropes burn with a uniform rate.
This ain't correct for the given scenario.
Consider a case where it take 30min to to burn 25% of the rope and another 30min for the rest 75% [given the rate could be non-uniform]. In that case, 30min would have passed when only half the rope is burnt if burnt from both ends.

- -- March 20, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

But the ropes are not burning at a uniform rate so by burning the first rope from both the ends u cannt be sure that it will burn in 1 hour exactly.

- Anonymous September 02, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The 1st soln is correct. When burnt frm either side the ropes should burn in 1 hr. So if a given rope is burnt frm both side it is bound 2 be completely burnt in half an hour. There is nothing 2 explain in that.
I was thinking of another soln which is almost same as d previous one.
Burn the 2 ropes 2gether keeping them side by side but frm opposite lengths. When the fire for both the ropes come 2gether that signifies half an hour have elapsed. Extinguish both the ropes. Now each of them is going 2 take another half an hour. So al2gether its 1 and a half hour. But 1st solution is best.

- Algo_maniac September 05, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

yaa first solution is good and correct

- rajnesh November 11, 2008 | 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