More Interview Questions.

SMS.AC called me up for a quick initial interview. Fun stuff.

Logic puzzles:
1. You have a triangle with three ants. Each ant is initially on one corner of the triangle. If the each ant moves in one direction to the next corner, what is the probability of two ants running into each other?

2. You have five guys evenly spaced around a circle, each wearing a white or black hat. Each person does not know what color their own hat is. There are at least two white hats and two black hats. None of them can communicate with each other. They can only see the hats someone else’s head. Of the five in the circle, how many can determine the color of their own hat?

One thought on “More Interview Questions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve this: Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.