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?

1. p = 0.75

2. Two of them.