# Microsoft Interview Puzzles

The Latest and exclusive collection of Microsoft Interview Puzzles to tease your brain. Microsoft Interview Puzzles helps exercising the brain and develop it to think logical and solve real world problems differenlty. PuzzleFry brings you the best Microsoft Interview Puzzles, you'll enjoy wide range of Microsoft Interview Puzzles, Lets try few Microsoft Interview Puzzles listed below -
• Two robots are placed at different points on a straight line of infinite length. When they are first placed down, they each spray out some oil to mark their starting points.

You must program each robot to ensure that the robots will eventually crash into each other. A program can consist of the following four instructions:

• Go left one space
• Go right one space
• Skip the next instruction if there is oil in my current spot
• Go to a label

[Note that a “label” is a name that refers to a line of your code. For example, you could label the third line of your program “surveying”. Then, the instruction “goto surveying” would jump to line 3 and start executing from there on the next cycle.]

A robot will carry out one instruction per second. Both robots need not have the same program. Note that you won’t know ahead of time which robot is on the left and which is on the right.

View Solution
Submit Solution
• 1,155.3K views

• Mr Andrew wants to have a party on new year eve i.e. 1st of Jan, where he will be serving his 512 barrels of wine. In the Christmas celebration, his enemies poisoned one of the barrels. The poison kills any man who drinks the wine in about 6 days.
A plant called Xtonix also get affected and killed by the poison in 6days and can be used to test the wine. Xtonix is very rare plant so very costly and limited, Mr Andrew decided to buy some Xtonix plant to test the poisoned barrel.

How can he identify the single poisoned barrel of wine?
What is the minimum number of plants needed for the same?

View Solution
Submit Solution
• 1,304.3K views

• A rich man died. In his will, he has divided his gold coins among his 5 sons, 5 daughters and a manager.

According to his will: First give one coin to manager. 1/5th of the remaining to the elder son. Now give one coin to the manager and 1/5th of the remaining to second son and so on….. After giving coins to 5th son, divided the remaining coins among five daughters equally.

All should get full coins. Find the minimum number of coins he has?

View Solution
Submit Solution
• 1,439.5K views

• In the middle of the confounded desert, there is the lost city of “Ash”.

To reach it, you will have to travel overland by foot from the coast. On a trek like this, each person can only carry enough rations for five days and the farthest we can travel in one day is 30 miles. Also, the city is 120 miles from the starting point.

What is the fewest number of persons, including yourself, that you will need in your Group so that you can reach the city, stay overnight, and then return to the coast without running out of supplies.
How many persons (including yourself) will you need to accomplish this mission?
View Solution
Submit Solution
• 1,449.3K views

• You have 100 coins laying flat on a table, each with a head side and a tail side. 10 of them are heads up, 90 are tails up.
You can’t feel, see or in any other way find out which side is up.

Split the coins into two piles such that there are the same number of heads in each pile.

How did you do it?

View Solution
Submit Solution
• 1,449.6K views

• What is the next number in this sequence:

1, 11, 21, 1211, 111221, 312211,  13112221, _________?

View Solution
Submit Solution
• 1,470.5K views

• If you have an 11 minute and 13 minute hourglass, how can you accurately time 15 minutes?

View Solution
Submit Solution
• 1,465.2K views

• What is 1/2 of 2/3 of 3/4 of 4/5 of 5/6 of 6/7 of 7/8 of 8/9 of 9/10 of 10,000?

View Solution
Submit Solution
• 1,461.8K views

• Two children are born in the same hospital, on the same year, on the same day, and have the same father and mother. But they are not twins.

How is this possible?

View Solution
Submit Solution
• 1,462.9K views