⚡ Build the skills to land top-paying quant jobs. Offer ends in 26d 12h 05m 46s26 days 12 hours 5 minutes 46 seconds.
You are given three bags of fruits. One has apples in it; one has oranges in it; one has a mix of apples and oranges. Each bag has a label on it ("apple", "orange", or "mix"). Unfortunately, your teacher tells you that all bags are mislabeled. In order to identify the bags correctly, you develop a strategic way of picking fruits from the mislabeled bags. What is the minimum number of fruits that we need to pick from the bags to correctly identify the bags?