## 3 Ants and Triangle Puzzle (Interview Puzzle)

###### 10 months ago codedestine 0

**3 Ants and Triangle Puzzle :-** There are 3 ants sitting at the three different corners of an equilateral triangle. Now each ant randomly picks a direction and starts moving along the edge of the triangle. What is the probability that none of the ants collide with each other?

## Now try to solve this on your own…

## Solution :-

This problem can be easily solved by using probability. Each ant can move in two different directions, either clockwise or anticlockwise and we have total 3 ants, so a total number of ways these 3 ants can move simultaneously are 2 * 2 * 2 = 8. Now to avoid a collision all 3 ants should move in the same direction, either clockwise or anticlockwise. So a total number of ways these 3 ants can move simultaneously to avoid a collision are 2.

So probability will be 2/8 = 0.25

That’s all for 3 Ants and Triangle Puzzle, If you liked it, please share your thoughts in a comments section and share it with others too. For more interesting puzzles visit Interview Puzzles.