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 point of oop?

642


What is overriding vs overloading?

573


Get me a number puzzle game-program

1684


What is new keyword in oops?

583


What is polymorphism and its types?

585






What is the renewal class?

2156


What is polymorphism in oop example?

507


What are main features of oop?

621


How can you overcome the diamond problem in inheritance?

758


What is an example of genetic polymorphism?

643


What is a function in oop?

623


Can bst contain duplicates?

660


Why is static class not inherited?

589


What is oops and why we use oops?

565


What is data binding in oops?

574