Marvell Technology

  www.marvell.com
  www.marvell.com

Interview Question

Design Verification Engineer Interview Santa Clara, CA

1 is heavier than the other 5 marbles among 6 mables

  . given a weight to find the heavier one.
Answer

Interview Answer

2 Answers

0

This should be done in 2 iterations...keep 3 in each hand...higher weight indicates the heavier marble is in that set...now with 3 marbles select 2...if weights are equal then the marble kept aside is the heavier one..

Anonymous on Aug 7, 2012
0

2 iterations. Take any 4 out of 6 and weigh 2 vs 2. If it is equal, weigh the other 2 as 1vs 1 and find the heaviest. If the 2 v 2 is uneven, take the uneven marbles and weigh them as 1 vs 1 and find the heaviest one.

Navneet on Oct 7, 2013

Add Answers or Comments

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