Navneet, Your answer is correct, it would have been great if you could have explained it for others. I myself took good time to understand it...
Here is the answer http://exploreriddles.blogspot.com/2011/06/interview-questions-puzzle.html To maximize the chances of retrieving Red Ball, it is mandatory to reduce the chances of retrieving Blue ball. To reduce the chances. 1. It is possible to put all the black ball in one jar. It will reduce the probability of retrieving black ball to half. 2. Now to reduce the probability of withdrawing Blue balls, need to maximize number of red balls in the jar with blue balls. Maximum red balls we have is 50. So based on above 2 points... one jar can have 1 Red ball, and other will contain rest 99 balls. So probability of choosing red ball is (Probability of Choosing Jar 1)*(Probability of Choosing Red Ball From jar 1) + (Probability of Choosing Jar 2)*(Probability of Choosing Red Ball From jar 2) (1/2)*(1) + (1/2)(49/99) Thanks & Regards Vishal Jain MNo: +91-9540611889 Tweet @jainvis Blog @ jainvish.blogspot.com Success taste better when target achieved is bigger. P *We have a responsibility to the environment.* *Before printing this e-mail or any other document, let's ask ourselves whether we need a hard copy.* On Tue, Jun 14, 2011 at 7:47 PM, Navneet Gupta <[email protected]>wrote: > Put one red ball in one jar and rest 99 balls in other jar. > > Probability in that case is 1/2*1 + 1/2*49//99 > > On Tue, Jun 14, 2011 at 7:45 PM, Vishal Jain <[email protected]> wrote: > >> Folks, >> >> This question was asked during a screening process of a product based >> company. Please answer. >> >> http://exploreriddles.blogspot.com/2011/06/interview-questions-puzzle.html >> >> Thanks & Regards >> Vishal Jain >> Success taste better when target achieved is bigger. >> >> P *We have a responsibility to the environment.* >> >> *Before printing this e-mail or any other document, let's ask ourselves >> whether we need a hard copy.* >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > --Navneet > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
