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?
Answer Posted / 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 |
Post New Answer View All Answers
What does I oop mean?
Why do we use class in oops?
What is the problem with multiple inheritance?
Why do pointers exist?
What is the oops and benefits of oops programming?
What makes a language oop?
What are oops methods?
What is multilevel inheritance in oop?
Why is encapsulation used?
Why do we need oop?
Get me an image implementation program.
Who invented oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
c++ program to swap the objects of two different classes
What is data binding in oops?