Interview Question

Junior Test Engineer Intern Interview

-Netanya

SolarWinds

You are given 8 bottles, 7 of wine and 1 of poison and 3 men. Each man can drink as many bottles as he wants. If a man drinks the poison he dies. without knowing which bottle he drank to death, find the poisoned bottle.

AnswerAdd Tags

Interview Answer

1 Answer

1

Number the bottles: 000 001 010 011 100 101 110 111 Men 1 drinks bottles 001, 011, 101, 111 Men 2 drinks bottles 010, 011, 110, 111 Men 3 drinks bottles 100, 101, 110, 111 According to who dies you get which bottle is poisoned.

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.