3 Mislabeled Jar of Fruits

Solve the 3 Mislabeled Jar of Fruits

In this problem, there are mislabeled three jars, where one Jar contains apples, one contains oranges and the third one contains the mixture of both. In how many minimum number of withdrawals one can label the jars correctly.

3 Mislabeled Jar of Fruits

Solution

  • Let’s take a scenario. Suppose you pick from jar labelled as Apple and Oranges and you got Apple from it. That means that jar should be Apple as it is incorrectly labelled. So it has to be Apple jar.
  • Now the jar labelled Oranges has to be Mixed as it cannot be the Oranges jar as they are wrongly labelled and the jar labelled Apple has to be Oranges.
3 Mislabeled Jar of Fruits

Similar scenario applies if it’s a Oranges taken out from the jar labelled as Apple and Oranges. So you need to pick just one fruit from the jar labelled as Apple and Oranges to correctly label the jars.

Solve the 3 Mislabeled Jar of Fruits

Prime Course Trailer

Related Banners

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription