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 use of oops?
What is the difference between procedural programming and oops?
Is react oop?
What are the components of marker interface?
What does and I oop mean?
What does no cap mean?
what are the realtime excercises in C++?
What is a null tree?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is oops and why we use oops?
What is solid in oops?
What are the two different types of polymorphism?
can inline function declare in private part of class?
What is this pointer in oop?
What is overriding in oop?