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 are the two different types of polymorphism?
Are polymorphisms mutations?
What is interface in oop?
What is oops concept with example?
How do you answer polymorphism?
What are classes oop?
What does sksksk mean in text slang?
what are the different types of qualifier in java?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is abstraction with example?
Why do pointers exist?
What is abstraction in oops with example?
What does and I oop mean?
What is encapsulation example?
Which language is not a true object oriented programming language?