**Flipkart Interview Puzzle - 3 June**

You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two ?

**For Solution :**Click Here

This Blog is a collection of brain teasers, puzzles (maths,fun,brain etc), riddles,Questions, Quiz.

You and your two friends are working in a multinational company. How can you three find out the average salary of you all without disclosing your own salary to the other two ?

Subscribe to:
Post Comments (Atom)

Difficulty Level 3/5
(756)
Logic Puzzles
(503)
Difficulty Level 4/5
(485)
Riddles
(367)
Difficulty Level 2/5
(358)
Picture Puzzles
(355)
Maths Puzzles
(354)
Trick Teasers
(290)
Popular Puzzles
(223)
Rebus Puzzles
(160)
Humor Puzzles
(153)
Interview Puzzle
(130)
Series Puzzles
(129)
What Word Am I
(100)
Difficulty Level 1/5
(90)
Equation Puzzles
(79)
Trivia
(78)
Mystery Puzzles
(74)
Difficulty level 5/5
(57)
Who Am I
(45)
Murder Mystery Puzzles
(44)
Square Count
(40)
Probability Puzzles
(39)
Algebra
(36)
IAS-EXAMS
(34)
Cipher Puzzles
(32)
Science Puzzles
(30)
Situation Puzzles
(28)
MatchSticks-Riddles
(22)
Puzzles of Age
(21)
Google Interview Puzzle
(18)
Read Between Lines Puzzles
(18)
statement
(17)
Microsoft Interview Puzzles
(16)
Time Distance Problem
(14)
Odd One Out
(13)
Relationship Puzzles
(12)
Cards
(10)
Story Puzzles
(10)
Paradox Puzzles
(9)
Classic
(6)
Directional Puzzles
(6)
Best Of 2011
(5)
clever
(5)
Brain-Twister
(4)
Mind Games
(4)
chess
(4)
Analytical
(3)
What Does This Text Mean
(3)
CHALLENGING
(2)
Double Meaning
(2)
Acronym
(1)
Measure
(1)
Suduko
(1)
Video Riddle
(1)
coin-Puzzles
(1)
m
(1)
pop
(1)
triv
(1)

The first guy should add a secret random number to his salary amount and pass that sum to the second guy. He has to add his salary value to that sum and pass it to the third who will also do the same. The resulting number will have the sum of 3 salary smount plus that secret number. Finally, this result should be passed from third guy to the first who will subtract the secret number from it, divide by 3 to find average and communicate the same to the other two.

ReplyDeleteBetter solution:

ReplyDeleteFirst guy should add a negative number to his salary (so that the sum itself becomes negative) and pass it to second guy. To this sum, second guy should add another negative number and his own salary making sure the new sum is still negative.. and pass it to third guy. Third guy should repeat the process.

After that, the first guy subtract that negative number (same as saying add the abs of that number) to the new sum and pass it to second guy. Second guy should repeat the process and so should third guy.

Let the third guy divide that by 3 which is the average salary.

-------------

This solution is better because it doesn't even give a clue that one's salary is certainly not above the sum that they are disclosed.

---------------

"How can you three find out the average salary of you all without disclosing your OWN salary to the other two ?"

ReplyDeleteAsk the other two for their salaries and get a calculator

"How can you three find out the average salary of you all without disclosing your OWN salary to the other two ?"

ReplyDeleteAsk the other two ... and get a calculator

Let us say that the three people are A, B and C respectively. Now you, A will tell the sum of your salary and a random number to B.

ReplyDeleteSA (Actual Salary) + A (random number of A)

In the same manner your friend B, will add his salary with a random number to the amount given by A (you) and will pass it to C.

(SA + A) + (SB + B)

C will do the same.

(SA + A) + (SB + B) + (SC + C)

Now C will pass this total amount to A. He will subtract his random number from the amount and it will become:

(SA) + (SB + B) + (SC + C)

Then he will pass it to B and B will subtract his random number from the amount.

(SA) + (SB) + (SC + C)

Then he will pass this to C who will subtract his random number.

(SA) + (SB) + (SC)

Now C has the total amount of their combined salaries. He will tell the amount to all of you and you can easily divide it by 3 to get the average salary.

Ask them to write their actual salaries on a paper and randomly mix before you get it. Add it to theirs and get the average..

ReplyDeleteMeets the conditions in the question.

But the random number solution is more elegant

Buy Led tv in Delhi from

ReplyDeleteSargam Electronics

get discount coupons http://couponhaat.in

ReplyDeletehttp://askmebazaarcoupon.in

ReplyDelete