PuzzlersWorld.com

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

Average salary

(41 votes, average: 1.39 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

  • Akbar – Birbal and well water puzzle
  • 13 caves and a thief
  • mute person wants to buy toothbrush
  • Did i speak to Tina or Meena ?
  • Girl and the box
  • August Decode Language
  • Awesome Crack the Code Puzzle
  • River crossing
  • 2 Tigers and 1 Lady Puzzle
  • Who owns the Fish ?

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