Interview Puzzles :: Discussion
You have 240 barrels of wine, one of which has been poisoned. After drinking the poisoned wine, one dies within 24 hours. You
have 5 slaves whom you are willing to sacrifice in order to determine
which barrel contains the poisoned wine. How do you achieve this in 48
No Best Answer on this question yet!
Asked In : Wipro
16 Mar, 2018 8:04 PM
Let us number the barrels with 5 digit numbers consisting of 0, 1 and 2. Let us number the slaves as 1, 10, 100, 1000, 10000.
Number 0 on a barrel represents the wine in the barrel will not be taken by the slave.
Number 1 on a barrel represents the wine in the barrel will be taken by the slave on the 1st day.
Number 2 on a barrel represents the wine in the barrel will be taken by the slave on the 2nd day(after 24 hours).