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?
Answers were Sorted based on User's Feedback
Answer / 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 |
what is the definition of storage classes?
1) int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain the explain the output
What is the difference b/w Structure & Array?
What does #pragma once mean?
int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?
How can I read and write comma-delimited text?
Can we assign integer value to char in c?
How can I read a binary data file properly?
Is null a keyword in c?
How do you convert strings to numbers in C?
Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }
What is the use of the sizeof operator?