|
|
|
|
|
by signa11
3547 days ago
|
|
> ... some companies threaten to terminate anyone who reveals his or her salary to another employee. after this, i was wondering if there is a way to get the average salary of a group without revealing / knowing actual numbers ? edit-001: ok, one thing that i can think of: 1. take a big number, and add your salary to it. this becomes the 'token' for the next guy. 2. he adds his salary to the number. etc. etc. once you have the final number, remove the original number, and divide by number of folks. since this scheme appears to be so trivial, i am now wondering what i did wrong ? |
|
Because the people at positions N and N+2 in your scheme can collude to determine the salary of the person at position N+1 without even having to reveal their own salaries in the process...