There are 3 baskets of fruits with worng lables,one basket
has apple,another basket has orange,another has combination
of apple and orange,what is the least way of interchange
the lables.
Answer Posted / nitinbhatia2211
Lets Say Basket as B1, B2, B3 labelled Apple, Orange and
Apple&Orange respectively.
As all the Baskets have wrong labels, we are sure for one
thing that Basket B3 doesn't contain Apples&Orange So we
will first take out the fruit from it. Suppose its Apple
then surely B3 will get its real label i.e. Apple.
And as again we know that the all baskets were wrongly
labelled... interchange the labels of basket B2 and B1.
So finally we have B1, B2 and B3 containing Orange,
Apple&Orange and Apple respectively.
Therefore the least no of ways to find out the correct
labels is ONE only.
| Is This Answer Correct ? | 47 Yes | 4 No |
Post New Answer View All Answers
Describe dynamic data structure in c programming language?
Where is c used?
What is #define used for in c?
Tell me the use of bit field in c language?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What is the difference between printf and scanf in c?
What is indirection? How many levels of pointers can you have?
c program to compute AREA under integral
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Explain the process of converting a Tree into a Binary Tree.
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
What is c method?
List the difference between a While & Do While loops?
Write a program to generate the Fibinocci Series
Differentiate between the expression “++a” and “a++”?