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 destructor example?
What does enum stand for?
Get me an image implementation program.
What makes a language oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is polymorphism oop?
What is encapsulation with real life example?
Where You Can Use Interface in your Project
what are the realtime excercises in C++?
What is the benefit of oop?
What is the difference between inheritance and polymorphism?
Why do we use inheritance?
What is the advantage of oop over procedural language?
What is the oops and benefits of oops programming?
Write a c++ program to display pass and fail for three student using static member function