Microsoft
Company
HR Interview
Interview
You have a bucket of jelly beans. Some are red, some are blue, and some green. With your eyes closed, pick out 2 of a like color. How many do you have to grab to be sure you have 2 of the same?
Read Solution (Total 9)
-
- If you grab 3 it might be all different. So take one extra to make sure you have two of the same.
So, take atleast 4 - 15 years agoHelpfull: Yes(23) No(3)
- Atmost 4
- 15 years agoHelpfull: Yes(6) No(6)
- for people with #ans4 what if you get all 4 same?
actually we need to count the jelly beans then devide the number of jelly beans by 3 .Let there are total N beans and after dividing it by 3 we got N/3=K beans then we must grab atleast 2K+2 beans to be sure that we two of same color. - 9 years agoHelpfull: Yes(2) No(1)
- 4 is correct becuz when we are done with three beans (let them be of different colors )then 4th bean will match to one of the color in our selected list.
- 9 years agoHelpfull: Yes(2) No(0)
- "Some" is assumed non-zero value with maximum unmentioned. In this case we can not be sure however much we are grab is sure to be of same color.
- 9 years agoHelpfull: Yes(1) No(0)
- 4 is the answer only in the case if they have said we are picking 3 different colours in the first 3 attempts. Here it is not given anything related to that. 4 is not the answer. Actually solution proposed by Uma Nath Jha is correct
- 8 years agoHelpfull: Yes(1) No(0)
- Grab 4...because either it will be in any one of the combination(2,1,1 x 3! or 0,4,0 x 3! or 1,3,0 x 3!)))
- 9 years agoHelpfull: Yes(0) No(0)
- answer is 4
- 7 years agoHelpfull: Yes(0) No(0)
- 4, because when we take 4 it will be sure that 2 of them are of same colour
- 6 years agoHelpfull: Yes(0) No(0)
Microsoft Other Question