You have 3 jars. Each jar has a label on it: white, black,
or white&black. You have 3 sets of marbles: white, black,
and white&black. One set is stored in one jar. The labels
on the jars are guaranteed to be incorrect (i.e. white will
not contain white). Which jar would you choose from to give
you the best chances of identifying the which set of
marbles in is in which jar?

Answer Posted / sceptic

DV is ABSOLUTELY Right. There is only and only 2 combination
possible for this problem. Even if you try you cannot
arrange them in any other way. So,

Jar Arrangements: B W B&W
Arrangement #1 w b&w b
Arrangement #2 b&w b w

So you pick any Jar and look at the color and it must follow
either Arrangement 1 or 2. So, you pick rest of your answer
from this table accordingly.

Scenario : Say you pick Jar:B and it contains White (w)

Color left: Black and B&W and Jar left: White and B&W

B&W cannot be in the B&W jar so it must be in the White Jar.

Exactly the same theory goes for whichever Jar you pick and
color it come out to.

**This is exactly what AJ said but I thought I would
reaffirm since people marked it as wrong :S

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did you choose the appropriate lifecycle for your project?

3112


Given a MAKEFILE (yeah a makefile), design the data structure that a parser would create and then write code that iterates over that data structure executing commands if needed.

5447


Explain dll hell?

872


Write a function that inserts an integer into a linked list in ascending order. Write the test cases for this function.

5315


How do you rate yourself in c#,vb.net,Asp.net,oracle,sql server ?

5177


Explain the various activities you do (as a PL) when the project is started up.

2578


how to tell project details in interview the project is funds flow analysis?

1399


Did you used crystal reports? Do you have sufficient knowledge on crystal reports?

2358


How do you ensure that your project plan is available for others to see? Where will you find the plans of other projects executed (in the past or currently) in the center?

2253


Can any one please give me an effective format for designing a functional specification and technical specification sheet for a software developemnt related company asap...it would be highly useful for my final year project.

2647


How would you deal with a bug that no one wants to fix? Both the SDE and his lead have said they won?t fix it?

3097


Tell about yourself and job ?

2310


funds flows analysis how to prepare for interview

1259


create a flow diagram up to 2 levels for hospital management

3432


Write the test cases for instr function?

821