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
Explain the concepts involved in Object Oriented programming.
What is oops in simple words?
What is encapsulation in oops?
What is super in oop?
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?
What does sksksk mean in text slang?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Which method cannot be overridden?
What is ambiguity in inheritance?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Can you explain polymorphism?
What is the fundamental idea of oop?
#include
What is polymorphism and why is it important?
what are the different types of qualifier in java?