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 / 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 |
Post New Answer View All Answers
What is the difference between static polymorphism and dynamic polymorphism?
What does oop mean in snapchat?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is polymorphism what is it for and how is it used?
Why polymorphism is used in oops?
write knight tour problem which is present in datastructure
Why is polymorphism used?
What language is oop?
Why is static class not inherited?
Why do we use encapsulation in oops?
Can we override main method?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is a function in oop?
Are polymorphisms mutations?
What is encapsulation in ict?