TCS
Company
Programming
Program
For the king’s revelry 30 barrels of beer have b been ordered. However, it was found that one of them is poisoned. The poison takes effect even if consumed in the tiniest amount after 14 hours. You need to find within 24 hours the poisoned barrel and have at your disposal some beer guzzling mice. The smallest number of mice required to find the poisoned barrel is:
Read Solution (Total 6)
-
- only 1 mice, as u can solve it simply by naming barrels say A1,A2......A30....now inject beer from A1 to that mice and note the timing at which u r performing ur experiment say at 10pm and with diference of 1 sec....inject beer from all the barrels respectively as there are 30 barrels and now after 14 hours note the death timings of mice supose if it dies at 12pm next day the poison is in first barrel that is A1....if it dies at 12.01 hrs then the poison is in barrel A2.....n likewise for others!!
- 13 years agoHelpfull: Yes(30) No(8)
- answer is 1 in case mouse is dead in exact 14 hours...but if it is case of after or within 14 hrs then answer is 5
- 13 years agoHelpfull: Yes(9) No(2)
- The answer is 5...
2^n > number of barrels..where 'n' is number of mouse - 13 years agoHelpfull: Yes(7) No(7)
- ans is 5 as 2^32 -2
- 13 years agoHelpfull: Yes(4) No(7)
- formula,2^n>30,here,n is the reqired barrel
so,2^5>30,2^4 - 13 years agoHelpfull: Yes(3) No(5)
- Answer is 1.
Check answer of Rohit.he explain it nicely. - 13 years agoHelpfull: Yes(3) No(5)
TCS Other Question