Interview Puzzles :: Discussion
-
A certain town comprises of 100 married couples. Everyone in the town lives by the following rule: If a husband cheats on his wife, the husband is executed as soon as his wife reports about him to the mayor. No woman can report about other's husband. Every woman in the town knows about all the cheating husbands in the town except her own. One day, the mayor of the town announces to the whole town that there is at least 1 cheating husband in the town. How many days it will take to find out 19 Cheaters from the day of the announcement?
Explanation :
No Best Answer on this question yet!Asked In : Sapient
Say there was only 1 cheating husband in the town. There will be 99 women who know exactly who the cheater is. The 1 remaining woman, who is being cheated on, would have assumed there are no cheaters. But now that the mayor has confirmed that there is at least one cheater, she realizes that her own husband must be cheating on her. So, her husband gets executed on the day of the announcement.
Now let’s assume there are 2 cheaters in the town. There will be 98 women in the town who know who the 2 cheaters are. The 2 wives, who are being cheated on, would think that there is only 1 cheater in the town. Since neither of these 2 women knows that their husbands are cheaters, they both do not report their husbands in on the day of the announcement. The next day, when the 2 women see that no husband was executed, they realize that there could only be one explanation – both their husbands are cheaters. Thus, on the second day, 2 husbands are executed.
Through induction, it can be proved that when this logic is applied to n cheating husbands, they all die on the n th day after the mayor’s announcement.
Looking for more interview puzzles with descriptive answers? Try this app. This app consists of 75 most frequently asked interview puzzles.