Thursday, September 4, 2014

Puzzle Game 2

Puzzle Game 2

Suppose you are at a dinner party.  The host wants to give out a door prize that is wrapped in a box.  Everyone (including the host) sits around a circular table and each person is given a fair coin.  Initially the host is holding the box.  He flips his coin.  If it is heads, he passes to the right.  If it is tails, he passes to the left.  The process is repeated by whichever guest is holding the box.  (Heads, they pass right; tails, they pass left.)  The game ends when the last person to receive the box finally gets it for the first time.  That person gets to keep the box as the winner of the game.

Where should you sit to maximize your chances of winning?


CHEERS!!!

Tuesday, September 2, 2014

Puzzle Game 1

Hey, Here comes the 1st Puzzle.

There are 100 light bulbs lined up in a row in a long room. Each bulb has its own switch and is currently switched off. The room has an entry door and an exit door. There are 100 people lined up outside the entry door. Each bulb is numbered consecutively from 1 to 100. So is each person.

Person No. 1 enters the room, switches on every bulb, and exits. Person No. 2 enters and flips the switch on every second bulb (turning off bulbs 2, 4, 6...). Person No. 3 enters and flips the switch on every third bulb (changing the state on bulbs 3, 6, 9...). This continues until all 100 people have passed through the room.

What is the final state of bulb No. 64? And how many of the light bulbs are illuminated after the 100th person has passed through the room?

Puzzle Game

Puzzle Game

Lets Start the Puzzle game.

Rules:

1. Try to give logical and meaningful reason for the puzzle.
2. Try not to repeat the solution.Solution optimization is always welcomed.
3. It would be better if you can provide a pseudo code for it.
4. If you have a new puzzle in your mind, Kindly give it to me. I will put it as new post for others as challenge.


Happy Puzzling!!!!!!!!!!!!!!! :)