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 / 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 |
Post New Answer View All Answers
What is destructor example?
What are different oops concepts?
What is persistence in oop?
What are the three parts of a simple empty class?
Which language is not a true object oriented programming language?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Whats is abstraction in oops?
Can static class have constructor?
Can we create object of abstract class?
What does I oop mean?
What is the types of inheritance?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is encapsulation process?
Why it is called runtime polymorphism?
What causes polymorphism?