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
What is object and class in oops?
write a program to find 2^n+1 ?
is there any choice in opting subjects like 4 out of 7
How does polymorphism work?
Why is oop useful?
Can we create object of abstract class?
What is the difference between inheritance and polymorphism?
What is inheritance and how many types of inheritance?
What is oops in programming?
Get me a number puzzle game-program
Can bst contain duplicates?
What are the 4 main oop principles?
What is the difference between abstraction and polymorphism?
can we make game by using c
Can an interface inherit a class?