Microsoft Interview Question for Software Engineer / Developers






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

Sorry the just solution I typed. Actually I mis read the question, here is the solution. Just light one rope at both the ends and light another only at one end. Now when the first rope over that time light up the other rope at the remaing end so the second rope will now take 15 min more to completely
burn.
Sudarshan Reddy M

- Sudarshan Reddy December 12, 2005 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

the solution is very simple
it is known that exactly in 1 hour the rope will burn
so lit the first rope from both ends and one end of second rope simultaneously.in 30 minutes first rope will burn completely and the second rope would have burnt it's 30 minutes.now 30 minutes of second rope is remainning.so burn from other end .after 15 minutes the remainning rope will burn completely.
thanks

- bhagwan das May 02, 2006 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

exactly~

- sharonluo February 07, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think what one can do is that just burn a rope at two ends at a time, so it will take definetely 15 min.
Sudarshan Reddy M
M. Tech Electrical Engg
IIT Bombay
sudarsan@ee.iitb.ac.in

- Sudarshan Reddy December 12, 2005 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Exactly:)

- Anonymous February 06, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The above solns wont work.
Its given tat ropes vary in density and dono which part will burn for 30 min

- Tangent August 29, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Actually you are wrong. Their solution is independant of burn rate.

- been there September 01, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

The solution will indeed work Mr. Tangent. Think of it this way. The rope takes exactly 1 hour to burn irrespective of the end you light. So if you light both ends simultaneously, then the burnings meet at the point where they each would have reached after 30 minutes. Note that this point may not be the centre of the rope

- Turing September 12, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

bhagwan has just given d right answer and has explained the same in a very decent manner..
well and a old puzzle with a bit of twist

- Abhishek Anand September 15, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Bhagwan's answer is right. But is there one more solution possible here? I was thinking of the following: With the first rope light it at both ends and also light it at the middle of the rope. Now, the rope should burn in 15 mins. Right?

- BSK July 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

No. Remember this line: "the ropes vary in density so you don't know that half of one rope will burn for 30 minutes".

The middle of the rope doesn't really mean anything. Your solution reduces to "light at both end, and at some other arbitrary spot on the rope." That spot might as well be one inch from the left end... and that case you might as well have not lit it at all.

- Gayle L McDowell July 13, 2010 | Flag


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