Three coworkers would like to know their average salary. However, they are self-conscious and don't want to tell each other their own salaries, for fear of either being ridiculed or getting their houses robbed. How can they find their average salary, without disclosing their own salaries?
(In reply to
re: D1 says ultimate simplicity. by Charlie)
The original difficulty was either 3 or 4. I thought that it was going to be hard but then I realized there was a solution so simple as to be D1. Ady agreed with D1, so in the absence of input from Danish, I want and changed it.
I would say that all of the solutions and variations offered in the comments justify my decision.
This problem is very interesting but not very hard.
|
Posted by Jer
on 2013-04-02 11:14:59 |