Interview Puzzles :: Discussion
Red and Blue Marbles Puzzle
There are 2 identical empty jars alongside the jars there were 50 red & 50 blue marbles kept. You need to put all the marbles into both of the jars in such a way that when any jar is selected at random the probability of picking up a red marble is the highest.
No Best Answer on this question yet!
Asked In : Infosys
28 Aug, 2018 6:59 AM
Put one red marble in 1 jar and the rest all the other marbles in another jar.
So probability of getting
P( red marble ) = P( Jar 1 ) * P( red marble in Jar 1 ) + P( Jar 2 ) * P( red marble in Jar 2 )
P( red marble ) = 0.5 * 1 + 0.5 * 49/99
P( red marble ) =