purbeast0
No Lifer
- Sep 13, 2001
- 53,668
- 6,554
- 126
Here's one from an interview I had:
You have 3 guys in a room. No one can know the salary of what the other people makes, however when they all leave the room, they must know the average salary of the 3 people in the room. How do they do this?
(and remember, no one can know anyone elses salary).
Another one from an interview:
You have 2 fuses that each take 60 minutes to burn. There is no guarantee that they burn uniformly. It may take 59 minutes to burn 1% of the fuse, then 1 minute to burn the other 99% of the fuse. Or it could take 30 mins to burn 50% of the fuse, and 30 mins to burn the other 50% of the rope. There is no guarantee regardless.
Also you have no way to tell time or to tell when a specific amount of time has passed. You do not have a watch or clock with you, and you cannot just "count" out a certain amount of time.
How do you burn the fuses to guarantee they will burn in exactly 45 minutes.
You have 3 guys in a room. No one can know the salary of what the other people makes, however when they all leave the room, they must know the average salary of the 3 people in the room. How do they do this?
(and remember, no one can know anyone elses salary).
Another one from an interview:
You have 2 fuses that each take 60 minutes to burn. There is no guarantee that they burn uniformly. It may take 59 minutes to burn 1% of the fuse, then 1 minute to burn the other 99% of the fuse. Or it could take 30 mins to burn 50% of the fuse, and 30 mins to burn the other 50% of the rope. There is no guarantee regardless.
Also you have no way to tell time or to tell when a specific amount of time has passed. You do not have a watch or clock with you, and you cannot just "count" out a certain amount of time.
How do you burn the fuses to guarantee they will burn in exactly 45 minutes.
