Three Boxes

In this puzzle we have $3$ boxes containing only apples, only oranges, and apples and oranges each.

The boxes are closed and labeled: apples, oranges, and apples and oranges, but we know for a fact that these labels are incorrect.

threeBoxesLabeled

Our task is to put the labels in the right boxes. We can ask for showing us one fruit from one box of our choose, but without showing us the entire content of this box.

What box should we choose? Why?

Solution
We choose the box labeled apples and oranges. If we see and apple (other case is analogous), then the right label for this box is apples (as the label apples and oranges is wrong and it couldn't be oranges). Finally, as the oranges label is incorrect we put it on the other box and put apples and oranges on this box.
Manuel Cáceres
Manuel Cáceres
Postdoctoral Researcher

My research interests include algorithmic bioinformatics, graph algorithms, string algorithms, algorithmic bioinformatics, compressed data structures, safe & complete algorithms and parameterized algorithms.