Answer to a popular Microsoft interview teaser question
Thursday, August 16th, 2007Microsoft is famous for asking brain teasers during interviews. Here’s one of them:
You’ve got a chicken, a fox, and a bag of grain on one side of the river, and a boat that holds you and one of the chicken/fox/grain. If the fox is left alone with the chicken, he’ll eat it. If the chicken is left alone with the grain, he’ll eat it. How do you get all across the river so that nobody/nothing gets eaten.
Answer:
Feed the grain to the chicken, then feed the chicken to the fox. Take the fox over, then induce vomiting on each animal in reverse order.
[Source]
When I read that, I laughed so hard that my stomach started hurting and I had to share it.


