It is all about interview puzzles and HR questions .

Sunday, 18 March 2018

You are blindfolded and 10 coins are place in front of you on table

puzzle: -
You are blindfolded and 10 coins are placed in front of you on table. You are allowed to touch the coins, but can’t tell which way up they are by feel. You are told that there are 5 coins head up, and 5 coins tails up but not which ones are which. How do you make two piles of coins each with the same number of heads up? You can flip the coins any number of times.

Solution:-
Make 2 piles with equal number of coins. Now, flip all the coins in one of the pile.
How this will work? lets take an example.
So initially there are 5 heads, so suppose you divide it in 2 piles.
Case:
P1 : H H T T T
P2 : H H H T T
Now when P1 will be flipped
P1 : T T H H H
P1(Heads) = P2(Heads)
Another case:
P1 : H T T T T
P2 : H H H H T
Now when P1 will be flipped
P1 : H H H H T
P1(Heads) = P2(Heads)
**This puzzle was asked in Yahoo Interview.**

===============================================================================

===============================================================================

0 comments:

Post a Comment

Popular Posts

Recent Posts

Categories

Unordered List

Join Us On Facebook

Please Wait 10 Seconds...!!!Skip

Text Widget

Blog Archive

Search This Blog

Powered by Blogger.

like us on facebook

Who is the man?

Puzzle :- Brother and sisters is have none but this man's father is my father's son? Who is the man? Answer :- The man is my ...

http://go.oclaserver.com/afu.php?zoneid=1633049