Lets assume I have three boxes that contains only apples
, only oranges
and a mix of apples and oranges
respectively and all of them are mislabelled
. What is the minimum number of selections
that I need to make so that I can be certain which box contains what fruits assuming I can pick one fruit at a time from any of the boxes ?
P.S: It is not a homework task . So don't put that tag in here . I was asked this in an interview. I was looking for a interview tag but couldn't find one .