Your friend has 100 red marbles 100 blue marbles and 2 jars.
10 jars of marbles riddle.
The other jars have marbles weighing 1 0 grams.
The marbles all look alike.
He fills the jars with the marbles put the two jars behind his back and tell you to pick one of them at random.
The one labeled both.
He proposes a game.
A king decided to let a prisoner try to escape the prison with his life.
To find the contaminated jar follow this step wise approach.
You ll then close your eyes he ll hand you the jar you picked and you ll pick a random marble from that jar.
The king placed 2 marbles in a jar that was glued to a table.
Interview question for software engineer in san francisco ca 2 you have 10 jars containing 100 marbles each.
Take out 1 pill from jar 1 2 pills from jar 2 3 pills from jar 3 4 pills from jar 4 and 5 pills from jar 5.
If the prisoner could pick the blue marble he would escape the prison with his life.
The correct weight is 150 15 10.
If a black marble comes out you know that has to be the black marbles box so you put the black label on it.
Since you know that the box is labeled incorrectly it must have all black marbles or all white marbles.
One of the marbles was supposed to be black and one was supposed to be blue.
What is the minimum number of weighs on a scale to find out which jar has the heavy marbles.
But one of the jars has contaminated pills.