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 / kanishka sukumar

select 2 random groups of 3 balls and after weighing them
1.if equal
the one not weighed is heaviest
else
measure any 2 balls of the heavier group
2. if equal
the one not weighed is heaviest
else
the heavier one is the heaviest

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object and class in oops?

590


write a program to find 2^n+1 ?

1555


is there any choice in opting subjects like 4 out of 7

1733


How does polymorphism work?

637


Why is oop useful?

605






Can we create object of abstract class?

581


What is the difference between inheritance and polymorphism?

594


What is inheritance and how many types of inheritance?

624


What is oops in programming?

570


Get me a number puzzle game-program

1696


Can bst contain duplicates?

678


What are the 4 main oop principles?

687


What is the difference between abstraction and polymorphism?

619


can we make game by using c

3434


Can an interface inherit a class?

565