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


Please Help Members By Posting Answers For Below Questions

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!!!)

1647


Can a destructor be called directly?

613


what is the drawback of classical methods in oops?

2926


What is object in oops?

621


Describe these concepts: Polymorphism, Inheritance and Abstraction.

622






What is abstract class in oop?

542


What is polymorphism oop?

635


What is polymorphism in oops with example?

539


class type to basic type conversion

1847


What is the importance of oop?

623


Are polymorphisms mutations?

713


How to call a non virtual function in the derived class by using base class pointer

5292


What is polymorphism used for?

583


What is the point of oop?

666


When not to use object oriented programming?

576