Amazon Interview Question: There are 27 balls with one b... | Glassdoor.co.in

Interview Question

Operations Manager Interview Hyderabad

There are 27 balls with one ball having additional weight

 . Total how many attempts you have to make to check all balls using a sisaw
Answer

Interview Answer

10 Answers

2

4

Anub on 11-May-2013
25

3. group the 27 balls into3 groups of nine, weigh 2 of the groups. If one is heavier, continue with that group. If they are equal, continue with the unweighed group. Break those nine into 3 groups of 3, weigh 2 groups. If one is heavier, continue with that group, otherwise use the unweighed group. With the 3 left, weigh any two. If one is heavier, you have it. If they are the same, then it is the unweighed ball that is heaviest. You have used the scale 3 times

Tim on 12-May-2013
0

friend what sort question they may ask to electrical student.amazon is coming to my college.please reply.

imran on 04-Nov-2013
0

Break it into 3 groups of 9, based on worse case scenario
1 test A & B group, if same go to step 2 if different go to step 3
2 test A & C group, take the heaviest group and split into 3 groups of 3
3 test A & B group if same go to step 4 if different go to step 5
4 test A & C group, take heaviest group and split into single balls
5 test A & B ball, if same go to step 6 if different you have the answer
6 test A and C ball
Worse case is 6 times you will need to use the scale

Anonymous on 19-Oct-2014
1

It’s actually FIVE different weightings. Try a visual tree with the breakdown of structure. Stars indicates each weighing.

              27 split
9 vs 9 9
      9* vs 9
               9* split
3 vs 3 3
       3* vs 3
               3* split
1 vs 1 ( 1)
       (1*) If last weight is uneven that item is the heaviest. If it's even then the
                                    unmeasured stone is the heaviest.

Dawn on 10-Nov-2014
0

First make three groups of 9. then make three groups of 3 with the heaviest. Finally 1 to 1. So total 8 attempts can pick the odd one.

Anonymous on 22-Sep-2015
0

1, 2, or 4

One attempt in the best case scenario and four attempts in the worst case scenario. Using the method below, your answer will be revealed in the first, second, or fourth attempt using the seesaw.

1. Divide ball in 2 groups of 13 and weigh. Your 27th ball not being weighed.
     --> If equal, you have the answer on first attempt. The heavy ball is the 27 ball, not weighed.
     --> If not equal, remove light balls and repeat the comparison with the heavier group of balls.
2. Divide balls in two groups of 6 and weigh. Your 13th ball is not weighed.
     --> If equal, you have the answer on the second attempt. The heavy ball is the 13th ball, not weighed.
     --> If not equal, remove the light balls and repeat the comparison with the heavier group of balls.
3. Divide balls in two groups of 3 and weigh.
     --> Remove the light balls and repeat the comparison with the heavier group of balls.
4. You now have three balls. Weigh two of the balls to get your answer.
     --> If equal, the heavy ball is the one not weighed.
     --> If not equal, your heavy ball is identified by the low end of the seesaw.

Rico on 20-May-2016
1

3

You can guarantee the answer in 3 steps, if required. However, you no longer stand a chance of obtaining the answer in the first 2 weighings as I described immediately above.

1. Divide balls into 3 groups of 9.
     --> Weigh two of the groups. This will identify the heavy group.
2. Divide the identified heavy group into 3 groups of 3.
     --> Weigh two of the groups. This will identify the heavy group.
3. Separate the 3 balls in the heavy group and weigh.
   --> This comparison will identify the one heavy ball from the original group of 27.

Rico on 20-May-2016
1

3 attempts -

attempt 1 -
divide 3 sections 9balls 9balls 9balls pick a section which is different in weight,

attempt 2 -
divide 3 sections 3balls 3balls 3 balls pick a section which is different in weight,

Attempt-3-
divide 3 sections 1ball 1ball 1ball pick a ball which is in different in weight

Attempt 3 -

Anonymous on 11-Jun-2016
0

4-5 attemps

Anonymous on 26-Apr-2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.