Home > AI > Math > State Machine >

3894

If you have 8 beans and one of them is a different weight from the others, how can you find the light bean only using a balance scale twice?

Solution:

Remove 2 beans, and put 3 beans on each side of the scale.
Possible scenarios:
-The 3 beans weight as the other 3 beans. Then weight the 2 beans removed and find the light one.
-3 beans weight less than the other 3. Take the light group of beans, remove one and put the remaining 2 on each side of the scale. If they are weighting equally then the bean removed is the light one, otherwise just see which of the beans on the scale is weighting less.

Related posts:
    No posts found.

Leave a Reply