Computer Scientist/Researcher Interview Questions | Glassdoor

Computer Scientist/Researcher Interview Questions


Computer scientist/researcher interview questions shared by candidates

Top Interview Questions

Sort: Relevance Popular Date

You are given two ropes and a lighter. This is the only equipment you can use. You are told that each of the two ropes has the following property: if you light one end of the rope, it will take exactly one hour to burn all the way to the other end. But it doesn't have to burn at a uniform rate. In other words, half the rope may burn in the first five minutes, and then the other half would take 55 minutes. The rate at which the two ropes burn is not necessarily the same, so the second rope will also take an hour to burn from one end to the other, but may do it at some varying rate, which is not necessarily the same as the one for the first rope. Now you are asked to measure a period of 45 minutes. How will you do it?

1 Answer

Light both ends of rope 1 and one end of rope 2 simultaneously. When rope 1 burns out, light the other end of rope 2. Sure, I'll hire someone on the basis of answering this gimmicky question.

12 of 2 Interview Questions