PuzzlersWorld.com

  • Hacker Puzzle
  • Interview Puzzles
  • Number Puzzles
  • Maths Puzzles

Average salary

(4 votes, average: 4.00 out of 5)

November 30, 2007 by Ankur Leave a Comment

Three coworkers would like to know their average salary. How can they do it, without disclosing their own salaries to other two?

See Solution : Average salaryHide Solution

Let the three persons are A, B and C. Now first A tells the sum of his salary and a random number to B , lets say (SA + A(random no. of A)). Now B adds the sum of his salary and a random number to the number given by A i. e. B makes the total = (SA +A) + (SB+B) and he passes this number to C. (at each step, they don’t show the no. to the third person). Now C does the same, adds his salary and a random number to the amount told by B. Now C passes this total equals to (SA+SB+SC+A+ B+C) to A. Now A subtracts his random no. (A), passes to B then B subtracts his random no. (B) and passes to C. Finally C subtracts his random no. (C) and tells everybody. They divide it by 3. Now they have the average salary.

  • Share on Whatsapp
  • Share on Facebook
  • Share on Twitter
Facebook Comments
Next Puzzle
River crossing

Checkout more Logical Puzzles Tags: Easy, Interview, Solved Puzzles

Leave a Comment Cancel reply

Submit your Puzzle

You may also like

  • Solve the murder case
  • Divide 1000 one Rs. coins in ten bag
  • Number of rectangles in MxN matrix
  • 2 Dice and money game
  • Who did it ?
  • Did i speak to Tina or Meena ?
  • 3 bulbs and 3 switches
  • A man and two gates
  • River crossing
  • Nine children in house

Categories

  • Aive hi Puzzles
  • Akbar and Birbal
  • Alphabetical Puzzles
  • Bollywood Puzzles
  • Google Code jam
  • Hindi Riddles
  • Interview Puzzles
  • Interview Questions
  • Logical Puzzles
  • Malayalam Puzzles
  • Maths Puzzles
  • Miscellaneous
  • Number Puzzles
  • Picture Puzzles
  • Riddles
  • Tamil Puzzles
  • Technical

Social

  • View puzzlersworld’s profile on Twitter
privacy policy

Copyright © 2022 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in

  • Hacker Puzzle
  • Logo Puzzles
  • Optical Illusions
  • WhatsApp Puzzles
  • Picture Puzzles
  • Riddles
    ▼
    • Hindi Riddles
  • Bollywood Puzzles
  • Alphabetical Puzzles
  • Aive hi Puzzles
  • Interview Puzzles
  • Logical Puzzles
  • Interview Questions
    ▼
    • Data Structures
    • Binary Tree
    • Algorithms
    • Recursion Questions
    • Amazon Interview Questions
    • Snapdeal Interview Questions
    • Google Code jam
  • Technical
  • Akbar and Birbal
  • Number Puzzles
  • Maths Puzzles
  • Miscellaneous