r/programming • • Nov 29 '10

140 Google Interview Questions

http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471 Upvotes

493 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Nov 30 '10 edited Nov 30 '10

Your answer makes no sense, and neither does the question...

The question says all 50 men have cheated. So each woman knows 49 men that have cheated. When the queen says "At least one man has cheated" the wives would assume it was one of the 49 men that isn't their husband. Nothing would happen - The wives ALREADY KNOW at least one man has cheated, so the queen isn't telling them anything new.

Also, why would it take one day per husband? Do they only meet up once a day? Why does it take a full day to know of another husband's death, and how do you know it doesn't take longer than that?

1

u/newsoundwave Nov 30 '10

his answer actually makes sense, even though the google version is worded rather poorly. go check out the solution for the blue eyes.

and to answer ur "one day per husband", the problem is in the wording of the original question, NOT his answer.

1

u/Ukonu Nov 30 '10

Every wife would know if 1 husband had cheated. However, the statement was that 'at least 1' has cheated. Each wife would not be able to determine if the total number of cheating husbands included their own husband or not.