Interview Puzzles :: Discussion
-
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 its box. 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?
Explanation :
No Best Answer on this question yet!Asked In : Wipro
All 3 boxes are mislabeled. Thus there are only 2 possibilities for each box. Take Box 3 as an example. If can’t be A&O, therefor it leaves 2 choices: If box 3 is A, box 2 must be A&O, Box 1 is therfore O. If box 3 is O, then box 1 must be A&O, therefore box 2 is A.
If you start with box 1 or box 2 you find the same 2 possibilities for the 3 boxes as the sequence above. And since we know box 3 mus be A or O-that’s the one to pick from.