Friday, March 21, 2008

Microsoft Interview questions

Puzzles....

1. Crazy Guy On The Airplane
A line of 100 airline passengers is waiting to board a plane. they each hold a ticket to one of the 100 seats on that flight.


2. 100 doors in a row.
you have 100 doors in a row that are all initially closed. you make 100 passes by the doors starting with the first door every time.


3. 100 programmers and an assassin
100 programmers are lined up in a row by an assassin. The assassin puts red and blue hats on them. They can't see their own hats, but they can see the hats of the people in front of them. the assassin starts in the back and says "what color is your hat?"


4. 3 black hats and 2 white hats
Four men are lined up on some steps. They are all facing in the same direction. A wall seperates the fourth man from the other three


5. Which bucket has the highest ratio between red and blue?
If you have two buckets, one with red paint and the other with blue paint, and you take one cup from the blue bucket and poor it into the red bucket. Then you take one cup from the red bucket and poor it into the blue bucket. Which bucket has the highest ratio between red and blue?


6. Bucket of Jelly Beans
You have a bucket of jelly beans. Some are red, some are blue, and some green. With your eyes closed, pick out 2 of a like color. How many do you have to grab to be sure you have 2 of the same?


7. If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly
If you had an infinite supply of water and a 5 quart and 3 quart pail, how would you measure exactly 4 quarts?


8. 4 women who want to cross a bridge
There are 4 women who want to cross a bridge. They all begin on the same side. You have 17 minutes to get all of them across to the other side. It is night. There is one flashlight. A maximum of two people can cross at one time.


9. Find a jar with a contaminated pill from a set of jars
You have 4 jars of pills. Each pill is a certain weight, except for contaminated pills contained in one jar, where each pill is weight + 1. How could you tell which jar had the contaminated pills in just one measurement?


10. Why does a mirror appear to reverse left and right but not up or down?
Why does a mirror appear to reverse left and right but not up or down?

No comments: