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


Please Help Members By Posting Answers For Below Questions

What is the difference between static polymorphism and dynamic polymorphism?

587


What does oop mean in snapchat?

698


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.

1464


What is polymorphism what is it for and how is it used?

580


Why polymorphism is used in oops?

592






write knight tour problem which is present in datastructure

2172


Why is polymorphism used?

592


What language is oop?

601


Why is static class not inherited?

601


Why do we use encapsulation in oops?

531


Can we override main method?

613


Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


What is a function in oop?

637


Are polymorphisms mutations?

711


What is encapsulation in ict?

612