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 / srini
let a,b,c,d,e,f,g be the 7 balls,
group them
a and b group 1
b and c group 2 and others one group
weigh group 1 against group 2
if they are not equal weigh the individual balls with
respect to each other
if they are not equal(group 1 is not equal to group 2)
weigh e against f, if they are not equal heaviest among
them is ur answer else g is the answer.
Is This Answer Correct ? | 6 Yes | 22 No |
Post New Answer View All Answers
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Can a destructor be called directly?
what is the drawback of classical methods in oops?
What is object in oops?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is abstract class in oop?
What is polymorphism oop?
What is polymorphism in oops with example?
class type to basic type conversion
What is the importance of oop?
Are polymorphisms mutations?
How to call a non virtual function in the derived class by using base class pointer
What is polymorphism used for?
What is the point of oop?
When not to use object oriented programming?