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
Explain virtual inheritance?
What is multilevel inheritance in oop?
Is enum a class?
What is polymorphism used for?
What is object and class in oops?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
Write a c++ program to display pass and fail for three student using static member function
Can a varargs method be overloaded?
What is object-oriented programming? Webopedia definition
Is data hiding and abstraction same?
What is protected in oop?
#include
Why is polymorphism needed?
What type of loop is a for loop?
What is the types of inheritance?