Marvell Technology Interview Question
75 Interview Reviews |
Back to all Marvell Technology Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Design Verification & Test Engineer at Marvell Technology:
You have seven stones and a weighing scale. Six of the stones are equal in weight and one is lighter. How will you figure out which one is lighter ? Minimum tries required to do so ?
See more for this Marvell Technology Design Verification & Test Engineer Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (4)
Helpful Answer?
Yes |
No
Inappropriate?
1 of 1 people found this helpful
1. Put {1, 2, 3} on LHS and {4, 5, 6} on RHS.
2. If LHS and RHS are equal 7 is the lighter one.
else discard heavier of previously weighed group.
Now we have a group 3 stones left. Lets call them A, B, C.
3. Put A on LHS and B on RHS.
4. If LHS and RHS are equal C is the lighter one.
else lighter or LHS or RHS is the lighter one.
Voila!
Helpful Answer?
Yes |
No
Inappropriate?
1 of 1 people found this helpful
1st try: 3 : 3, 7th is fake if equal; otherwise,
2nd try: 1:1 picked from the light triple in 1st try. the lighter one is fake if any, the third one fake otherwise.
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
0 of 0 people found this helpful
by RKPATEL:
A: Of the 4 on the scales if one side weighs more then the other then weigh one on each side (since one of them must be heavier)
B. If the 2 vs 2 are equal then at random weigh 2 (one on each side) of the three left on the side. If they are the same then the 3rd one that never got weighed is the heaviest.
Simple case of process of elimination by grouping (Divide and Test)