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 polymorphism what are the different types of polymorphism?
What is constructor overloading in oop?
Why multiple inheritance is not allowed?
What is persistence in oop?
What is multilevel inheritance explain with example?
how to get the oracle certification? send me the answer
What is the difference between encapsulation and polymorphism?
What is the oops and benefits of oops programming?
What is encapsulation in simple terms?
Plese get me a perfect C++ program for railway/airway reservation with all details.
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
Whats is abstraction in oops?
What are the 4 pillars of oop?
write a program that takes input in digits and display the result in words from 1 to 1000
What is and I oop mean?