Marvell Semiconductor Interview Question: 1 is heavier than the other 5... | Glassdoor

Find your next job here

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.

Interview Answer

2 Answers


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

Anonymous on Aug 7, 2012

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, Sign In or Sign Up.