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 |
write a c program to find the probability of random numbers between 1-1000
Explain how can you avoid including a header more than once?
Is anything faster than c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Which is best book for data structures in c?
How many keywords (reserve words) are in c?
a character variable can at a time store a) 1 character b) 8 characters c) 254 characters d) none of the above
What is structure padding in c?
What are operators in c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
what is the difference between arrays and linked list
26 Answers MAHINDRA, Tech Mahindra, Wipro,
Explain the use of 'auto' keyword in c programming?