We have a scale and 7 balls. 1 ball is heavier than all the
rest. How to determine the heaviest ball with only 3
possible weighing attempts?

Answers were Sorted based on User's Feedback



We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / subir

(Step-1)Divide the balls into 2 groups of 3 each, and weigh
them. If they weigh same, then the 7th ball outside is the
heaviest.
(Step-2) If not then,
one of the 3 balls group being weighed is heavier. Take
them down and consider the heavier group, with one ball on
each side of the balance.
(Step-3)if they measure unequal, then the heavier one is
detected, and if they measure equal then the one outside is
heavier.

Is This Answer Correct ?    65 Yes 5 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / simon y

Sorry guys, you failed the interview, and you got the
question wrong. It is what is the least number of
weighings - the answer is 2 not 3.
1) Take 2 random groups of 3 balls, compare them. If they
are the same you got lucky - the heavier ball is the one
you didn't weigh. If they are different you need step 2
2) Take the 3 heavier balls from weighing 1) and randomly
compare 2 of them. If one is heavier, that is the hevier
ball - if tehy are the same, then the one you didn't weigh
is the heavy one.

Is This Answer Correct ?    29 Yes 10 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / madhu

divide balls as 3 + 3 + 1 and
1. weight them 3 balls and 3 balls if both are equal the
outer ball is bigger one. else
2. Add the single ball which is not weighted before to the
higher weight 3 balls and now it total balls will be 3+ 1
and divide them as 2 + 2
3. In second attempt weight them and find which is having
higher weight then take the higher weight group and in 3rd
attempt compare them individual and you will get the bigger
ball in three attempts.

Is This Answer Correct ?    11 Yes 4 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / kanishka sukumar

select 2 random groups of 3 balls and after weighing them
1.if equal
the one not weighed is heaviest
else
measure any 2 balls of the heavier group
2. if equal
the one not weighed is heaviest
else
the heavier one is the heaviest

Is This Answer Correct ?    6 Yes 3 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / jitendra

pehale to 3=3 gr (one bahar rakha) 3=3 weigth karane ke bad
konsawla jada heavy hai wo pata chal jayega to 3 rai gaye
bad me 2=2 gr banage (pehala wala jo baki tha aur ye teen
)dono ka weight karane ke bad konsa heavy hai pata chal
jayega lastly 2 bache then final answer....

Is This Answer Correct ?    1 Yes 0 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / adub

12 vs 34
12 vs 56
1 vs 5

1) Establish a control group by weighing 12 vs 34. If they
are equal then 1234 are all control. If they are not equal
than 567 are all control.

2) Weigh two of the non-control group against two of the
control group. If they are equal than the other non-control
balls contain the outlier. If they are not equal than you
have determined heavier/lighter and narrowed it down to 2 balls.

3) Weight one of two balls against the control to find
which one is the outlier. example 1 vs 5. If equal then
you know it's the other ball.

note: There is one case where you would have to check
results from the first weighing to find out heavier/lighter.

Is This Answer Correct ?    0 Yes 0 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / kiran

I think its impossible to answer this with CERTAINTY...we
could get a right answer but we cannot GUARANTEE a correct
answer ALWAYS...

Best i can get to is guarantee an answer in 4 comparision...

Is This Answer Correct ?    1 Yes 5 No

We have a scale and 7 balls. 1 ball is heavier than all the rest. How to determine the heaviest ba..

Answer / srini

let a,b,c,d,e,f,g be the 7 balls,
group them
a and b group 1
b and c group 2 and others one group
weigh group 1 against group 2
if they are not equal weigh the individual balls with
respect to each other

if they are not equal(group 1 is not equal to group 2)
weigh e against f, if they are not equal heaviest among
them is ur answer else g is the answer.

Is This Answer Correct ?    6 Yes 22 No

Post New Answer

More OOPS Interview Questions

What is deep and shalow copy?

3 Answers   L&T, TCS,


what is polymorphism?

4 Answers  


What are oops functions?

0 Answers  


what is an instance of a class

5 Answers  


How do you make derived class as an abstract class?

1 Answers   Convergys, TCS,






Why do we use class?

0 Answers  


What is a linked list?

7 Answers   IBM, Neural Info,


What is Agile methodology?

20 Answers   ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,


I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.

0 Answers  


when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,


polymorphism means?

6 Answers   BFL,


can we create and enter the data & hide files using programmes ?

2 Answers   Wipro,


Categories