Jelly beans Interview Puzzle


You have three jars that are all mislabeled. One contains peanut butter jelly
beans(Label :PB)
, another grape jelly jelly beans(Label : GB), and the third has a mix of both(Label :MIX) (not necessarily a 50/50 mix, could be a 1/99 mix ora 399/22 mix).

Question :How many jelly beans would you have to pull out, and out of which jars, to find out how to fix the labels on the jars?

Add Comment

  • 1 Answer(s)

    1 jelly bean from the MIX jar will do the trick.The trick here is to realize that every jar is mislabeled. Therefore you know that the peanut butter jelly bean jar is not the peanut butter jelly bean jar, and the same goes for the rest. You also need to realize that it is the jar labeled p.b./grape,labelled as the MIX jar, that is your best hope. if you choose a jelly bean out of there, then you will know whether that jar is peanut butter or grape jelly jelly beans. it can’t be the mix jar because I already said that every jar is mislabeled.
    Once you know that this jar is either peanut butter, or grape jelly, then you know the other jars also. If it is peanut butter, then jar 2 must be mixed because it can’t be grape (as its labelled) and it can’t be peanut butter (that’s jar 3). hence jar 1 is grape.If jar 3 is grape, then you know jar 1 must be the mix because it can’t be p.b. (as its labelled) and it can’t be grape (that’s jar 3). Hence jar 2 is peanut butter.If you pick jelly beans from jar1 or jar 2, then you would have to pick out all of the jelly beans before you knew what that jar was. This is because jar 1 and 2 could be the mix, so in order to disprove that they were the mix, you would have to pull out every jelly bean just to make sure (since there could just be one bean of the opposite flavor in there).

    pnikam Expert Answered on 22nd August 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.
  • More puzzles to try-