Interview Brain Teasers Medium 3 min

An interviewer gives you 8 identical balls. One ball is slightly heavier than the others. Using a balance scale, what is the minimum number of weighings required to guarantee finding the heavier ball?

Hint
Divide the balls into groups as evenly as possible.

Answer

2 weighings.

Explanation

Divide the balls into groups of 3, 3 and 2. Weigh 3 against 3. If they balance, the heavier ball is among the remaining 2 and one more weighing identifies it. If they do not balance, the heavier ball is in the heavier group of 3 and one additional weighing identifies it.

Step-by-Step Solution

Weigh 1: 3 vs 3.
If balanced, weigh the remaining 2.
If unbalanced, weigh 1 vs 1 from the heavier group of 3.
6 puzzles