Tough Interview question - mathematic

If you got 8 balls, one of them has 9.8g and the remainders are 10g,

You are given one balance. What is the minimum try needed for you to find out the 9.8g ball?

ANSWER:

Minimum try is two only.

Explanation:

1. Separate 8 balls into 2 groups, 6 balls and 2 balls, respectively. Putting the first group in three to three balls arrangement in the balance for its first try.

2. If the first group is unbalance, the second group is surely in balance. Then process to test the less weight part of the balance by using one to one ball arrangement in the balance for its second try then you know which one have different weight.

3. However, if the first group is balance, then what you need to do is just test the second group for the second or last try.

1 comment:

indianist said...

Nice, I failed lot of intervews due to tough interview question, after reading your article i learn hot to face an interview thanks,,,,,,