This question was asked by ST micro for hiring intern in my college . Here's 
the solution :
Let the bottles of alcohol named 0 to 5 then - 

No.    Binary Value
0        0 0 0
1        0 0 1
2        0 1 0
3        0 1 1
4        1 0 0
5        1 0 1

Mice - a b c

Now make the mice drink alcohol from bottle having 1 at corresponding 
position like *a* has drunk from bottle 4 and 5 ; and so on ... 

IF mice a and c died then poison is in bottle no. 5 
IF b and c died then bottle - 3
and so on ... 

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/31hmybxB0mUJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to