Mislabeled Jars | Puzzles for Interview - Interview Preparation PDF Download

Problem Statement

There are 3 jars, namely, A, B, C. All of them are mislabeled. The labels on each of the jars are as follows:

  • Jar A: Candies
  • Jar B: Sweets
  • Jar C: Candies and Sweets (mixed in a random proportion)

You can put your hand in a jar and pick only one eatable at a time. The shape of the candies and sweets are identical, and there is no way to differentiate them by touching alone. Your task is to determine the minimum number of eatables that must be picked in order to label the jars correctly.

Solution

  • Start by picking one eatable from Jar A. Since Jar A is mislabeled, you know that it cannot contain only candies. It must contain either only sweets or a mix of candies and sweets.
  • If you pick a candy from Jar A, you can deduce that Jar A must contain the mix of candies and sweets. This is because Jar A cannot contain only candies (as it is mislabeled) and it also cannot contain only sweets (since you picked a candy from it).
  • If you pick a sweet from Jar A, you can deduce that Jar A must contain only sweets. This is because Jar A cannot contain only candies (as it is mislabeled) and it also cannot contain a mix of candies and sweets (since you picked a sweet from it and Jar C is mislabeled).
  • Now that you know the contents of Jar A, you can easily determine the contents of Jar B and Jar C by process of elimination. For example, if Jar A contains the mix of candies and sweets, then Jar B must contain only candies and Jar C must contain only sweets (since all jars are mislabeled).

Conclusion

By picking only one eatable from Jar A, you can correctly label all three jars. This is the minimum number of eatables that need to be picked to solve the puzzle.

The document Mislabeled Jars | Puzzles for Interview - Interview Preparation is a part of the Interview Preparation Course Puzzles for Interview.
All you need of Interview Preparation at this link: Interview Preparation
109 docs

Top Courses for Interview Preparation

109 docs
Download as PDF
Explore Courses for Interview Preparation exam

Top Courses for Interview Preparation

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

past year papers

,

Extra Questions

,

ppt

,

Exam

,

Mislabeled Jars | Puzzles for Interview - Interview Preparation

,

Sample Paper

,

Important questions

,

video lectures

,

Previous Year Questions with Solutions

,

Objective type Questions

,

Semester Notes

,

Mislabeled Jars | Puzzles for Interview - Interview Preparation

,

shortcuts and tricks

,

MCQs

,

study material

,

Free

,

mock tests for examination

,

Viva Questions

,

practice quizzes

,

Summary

,

Mislabeled Jars | Puzzles for Interview - Interview Preparation

,

pdf

;