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

  • A lot of thought – parking number puzzle
  • Decipher the hidden text
  • Customer car and icecream
  • Did i speak to Tina or Meena ?
  • Fake FIR, solve the case
  • Philip says truth only one day
  • Defective coins
  • Mind Teaser – what will be the values of a-h
  • Minimum wins to qualify for playoffs
  • Intelligent trader with 3 sacks and coconuts

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 © 2023 · 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