Open the box labeled "apples and oranges" and inspect one piece of fruit. Say that it is an apple. Then label this box "apples" since it cannot be "apples and oranges" or "oranges." To identify the boxes that should be labeled "oranges" and "apples and oranges," realize that since the remaining boxes are mislabeled, the one labeled "oranges" cannot contain only oranges, so it must be "apples and oranges." And the last box is "oranges." Deal with discovering an orange in the first box in a similar way.
Dave On Jan 12, 6:52 am, bittu <[email protected]> wrote: > 3rd Puzzle > > There are three boxes, one contains only apples, one contains only > oranges, and one contains both apples and oranges. The boxes have been > incorrectly labeled such that no label identifies the actual contents > of the box it labels. Opening just one box, and without looking in the > box, you take out one piece of fruit. By looking at the fruit, how can > you immediately label all of the boxes correctly? > > Thanks & Regards > Shashank -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
