There are 8 billiard balls, and one of them is slightly
heavier, but the only way to tell was by putting it on a
weighing scale against another. What's the fewest number of
times you'd have to use the scale to find the heavier ball?
Answer Posted / mahesh t
first take 6 balls from 8 balls
from those 6 divide 3 and 3 check it in weighing scale if it
equals weight remaining 2 balls and you get the hevier
ball....of not equals take the 3 balls which is hevier from
those weighing with 6 balls then take 2 balls from those 3
balls and weight if equals the remaining one is hevier
and final you can know the hevier ball within 2 times
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Who developed c language and when?
What functions are used for dynamic memory allocation in c language?
Write a program to find the biggest number of three numbers in c?
What is the difference between char array and char pointer?
write a c program in such a way that if we enter the today date the output should be next day's date.
Explain what are the different data types in c?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Explain what does a function declared as pascal do differently?
Why malloc is faster than calloc?
What is linear search?
How is a structure member accessed?
Give me the code of in-order recursive and non-recursive.
What are c header files?
write a programming in c to find the sum of all elements in an array through function.