Category Archives: Puzzles

Ant and Triangle Problem

Ants and triangle puzzle

Puzzle: Three ants are sitting at the three corners of an equilateral triangle. Each ant starts randomly picks a direction and starts to move along the edge of the triangle. What is the probability that none of the ants collide? Puzzle Solution: So let’s think this through. The ants can only avoid a collision if Read More →

2 Eggs 100 Floors Puzzle

Tech interview puzzle, brain teasers, riddles

Problem: You are given 2 eggs. You have access to a 100-storey building. Eggs can be very hard or very fragile means it may break if dropped from the first floor or may not even break if dropped from 100 th floor.Both eggs are identical. You need to figure out the highest floor of a Read More →

IIT Students and Hats Puzzle

Puzzle: The riddle is Nine IIT students were sitting in a classroom. Their professor wanted them to test. Next day the professor told all of his 9 students that he has 9 hats, The hats either red or black color. He also added that he has at least one hat with red color and the Read More →

Measure 4 gallon of water from 3 gallon and 5 gallon water jar

measure 4 gallon water using 3 and 4 gallon jar

Problem : How to measure exactly 4 gallon of water from 3 gallon and 5 gallon jars, Given, you have unlimited water supply from a running tap. Solution: Step 1. Fill 3 gallon jar with water. ( 5p – 0, 3p – 3) Step 2. Pour all its water into 5 gallon jar. (5p – Read More →

10 identical bottles of pills

This is a very popular brain teaser with many companies. Problem : We have 10 identical bottles of identical pills (each bottle contain hundred of pills). Out of 10 bottles 9 have 1 gram of pills but 1 bottle has pills of weight of 1.1 gram. Given a measurement scale, how would you find the Read More →

How can four employees calculate the average of their salaries without knowing other’s salary

This solution has a limitation that information is partially passed  and there needs some trust level. Salary of A: i Salary of B: j Salary of C: k Salary of D: l A passes to B (i + a) where a is a number that A knows B takes this a passes to C (i Read More →