The King's Party

Sign up to mark as complete Sign up to bookmark this question
Asset Pricingx / 34
Behavioral Questionsx / 7
Brain Teasersx / 70
Derivatives Theoryx / 104
Digital Assets - Cryptox / 64
Energy Tradingx / 40
Linear Algebrax / 24
Math Questionsx / 30
Probability and Statistics Theoryx / 137
Programmingx / 34
Totalx / 545

Sign up to track your progress

The King's Party

Someone breaks into the wine cellar of a king, where he stores 1000 bottles of wine. This person proceeds to poison one of the 1000 bottles, but gets away too quickly for the king's guard. Nobody knows which one he poisoned. The king needs the remaining 999 safe bottles for his party in four weeks. The king has ten prisoners who deserve execution. The poison takes just less than four weeks to take effect. Any amount of the poisoned wine will kill whoever drinks it.

How can he figure out which bottle was poisoned in time for the party?
Think about binary strings.
Since every prisoner can end up dead or alive, there are 2^10 = 1024 possible outcomes. Since 1024 > 1000, it's actually possible to use an approach using binary strings.
  • The king assigns each servant a number from 1 to 10.
  • The king assigns each bottle a number from 0 to 999.
When he labels them, he writes the number on the bottle in binary with ten digits, like this:
  • 0: 000000000
  • 1: 000000001
  • 2: 000000010
  • 3: 000000011
  • 4: 000000100
  • ...
  • 999: 1111100111.
The strategy is simple: the king assigned the prissoners a number from 1 to 10, indicating the position of the number in the binary string. If the string has a number one on the - let's say - fifth- and sixth position, then the prisoners with number five and six have to drink the wine. After less than four weeks, suppose only prisoners number five and six die. This means the binary representation of poisoned wine has a '1' at position five and six, and the rest are all zeros.

Convert this binary number to a decimal and that gives you the number of the poisoned wine.
Title Category Subcategory Difficulty Status
1 to 7 Brain TeasersOut of the BoxMedium
Ants on a Stick Brain TeasersOut of the BoxEasy
Calendar Dice Brain TeasersOut of the BoxMedium
Door to Offer Brain TeasersOut of the BoxHard
Escape Plan Brain TeasersOut of the BoxMedium
Fair Dice Brain TeasersOut of the BoxEasy
Four Switches Brain TeasersOut of the BoxEasy
Fruit Bags Brain TeasersOut of the BoxMedium
Good or Bad Candy Brain TeasersOut of the BoxEasy
Infinite Chessboard Brain TeasersOut of the BoxHard
Message Box Brain TeasersOut of the BoxEasy
Trader's Salary Brain TeasersOut of the BoxEasy

Please log in to see the discussion.