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 / soumava bose
suppose B1,B2,& B3 care the baskets.Now we will first open
B1.suppose it contains Oranges.Then its level would be
either Appale or Combination.Now suppose The lebel is
combination.Now the basket with lebel orange is
interchanged with it.As initially all baskets had wrong
lebels.so the basket with lebel appale must have either
orange or combination.so now we interchange the two lebels
of the remaining baskets & get the proper answer.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is exit(status) truly equivalent to returning the same status from main?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What is echo in c programming?
can any one provide me the notes of data structure for ignou cs-62 paper
What is meant by keywords in c?
Explain how can a program be made to print the line number where an error occurs?
What is the size of structure in c?
Can you return null in c?
Is c weakly typed?
Explain the concept and use of type void.
Is it acceptable to declare/define a variable in a c header?
can anyone suggest some site name..where i can get some good data structure puzzles???
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
How does selection sort work in c?
Explain how can you be sure that a program follows the ansi c standard?