Can You Solve These Challenging Microsoft Interview Riddles?

  • Thread starter Thread starter z-component
  • Start date Start date
  • Tags Tags
    Interview
Click For Summary
The discussion revolves around three riddles presented during a Microsoft job interview, which are designed to assess problem-solving skills rather than just correct answers. The first riddle involves identifying a pattern in a sequence known as the Conway sequence. The second riddle challenges participants to determine the quickest way for four people with different crossing times to cross a bridge with one flashlight, with various interpretations leading to different proposed solutions. The third riddle requires timing 45 minutes using two fuses that burn at inconsistent rates, prompting various strategies for solving it. Overall, the conversation highlights the complexity of the riddles and the importance of clear problem definitions in logical reasoning.
  • #31
TenaliRaman said:
Err nope,
(warning : spoiler)

Assume a,b,c,d are on the left side.
Objective -> a,b,c,d to go to right side in minimum time
Constraints -> Just one flashligh, flashlight necessary to cross and bridge can balance at the max 2 people
a(1 min,flashlight),b(2 min) go right --> 2 mins
a(1 min,flashlight) goes left --> 1 mins
c(5 min,flashlight),d(10 min) go right -> 10 mins
b(2 min,flashlight) goes left --> 2 mins
a(1 min,flashlight),b(2 min) go right --> 2 mins
Total -> 2+1+10+2+2 = 17 mins
[/Color]

-- AI


The problem is that "nobody can go alone".
 
Physics news on Phys.org
  • #32
neurocomp2003 said:
this was my solution..i'm not going to white it because its a matter of the way you interpret the question. 10min carries flashlight.5+2+1+1+1=8 = 10.

This is a good thought. When it says that they can't go alone does that mean that they have to be on the bridge the same time as someone else? If that's the case then I think that works out well.
 
  • #33
TenaliRaman said:
Really :confused:


Google for Conway sequence, its one of the well known sequence and according to one paper (which is not freely available unfortunately) this sequence has many interesting properties.[/Color]

-- AI

Problem #1 is actually pretty simple. Below is a clue:

How many '1's are in line #1?
 
  • #34
BobG said:
Tenali, you solved the problem as it should have been written. You didn't read the way it was actually written closely enough.

"You have four people at a bridge... one HAS to carry a flashlight as they cross, but only two can cross at a time. And nobody can go alone."

As written, it pretty much makes the problem unsolvable unless you either have two flashlights or get to throw the only flashlight.

Actually, with this pointed out it seems that only one person has to carry the flashlight as they (singular person) cross. So you really only need one person to carry the flashlight as they cross. The others are free to go as they please. So let 10 and 5 start out, then after 5 minutes, let 2 go, then after 2 minutes let 1 go and finish walking with 10 (unless the name of 10 is "nobody"). Total time of 10 minutes.
 
  • #35
AKG said:
1 3 1 1 2 2 2 1First 1 and 2 go across, then 1 comes back. Then 10 and 5 go across and then 2 comes back. Then 1 and 2 go across. Total time: 2 + 1 + 10 + 2 + 2 = 17.
]

"And nobody can go alone."
isn't 1 and 2 go alone when they say 'comes back'. Somehing like go back and threfore, go back alone.
 
  • #36
Site for Microsoft Interview Questions

http://www.emicrosoftinterview.com -Guide for Microsoft Interview Questions
 
Last edited by a moderator:
  • #37
45 min ... burn both ropes at same time ..rope 1 from both ends and rope 2 from 1 end
wen rope 1 is burnout 30 min has gone ...and so out rope 2 which has 30 min left and then burn that from both ends instantaneouly affter rope 1 is ouit...even if its not instantaneous you would measure approxmatley 45 min plus 5 seconds or so
 
  • #38
I am resusciting this problem in a new thread, https://www.physicsforums.com/forumdisplay.php?f=33 because it deserves more discussion. To begin, that the question with 45 mins needs two strings but the same question for 15 minutes needs only one string.


michealsmith said:
45 min ... burn
both ropes at same time ..rope 1 from both ends and rope 2 from 1 end
wen rope 1 is burnout 30 min has gone ...and so out rope 2 which has 30 min left and then burn that from both ends instantaneouly affter rope 1 is ouit...even if its not instantaneous you would measure approxmatley 45 min plus 5 seconds or so
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
Replies
25
Views
4K
Replies
35
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 27 ·
Replies
27
Views
12K