Fast Enterprises

  www.fastenterprises.com
  www.fastenterprises.com
Work in HR? Unlock Free Profile

Interview Question

Software Developer Interview

find the heavier bean... you have 6 beans and can only use

  the scale twice... the scale is an old time balance (think of the justice scales)
Answer

Interview Answer

1 Answer

1

3 beans on each side of the scale. eliminate the 3 lighter beans.
weigh 2 of the 3 beans remaining. if they weigh the same, the heavier bean is the unweighed one. choose the heavier one otherwise.

Anonymous on Nov 19, 2012

Add Answers or Comments

To comment on this question, Sign In with Facebook or Sign Up