Microsoft Interview Question for Software Engineer / Developers


Team: Global Foundation Services
Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
13
of 13 vote

48

- Anonymous January 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

2 in the best case, 26 in the worst case

- Daniel January 17, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Daniel: what if all of 26 balls are of green color? I think 48 should be the answer.

- PM January 19, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

48

- Rishikesh January 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

i think its 48

- Roli March 20, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Min no of balls : 48

- VJ May 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Min no of balls : 48

- VJ May 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

ans =48

- Anonymous June 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

soo finally wats the correct answer..........
anyone with a mathematical reson

- shreyans June 18, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

48

- anju August 19, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Can anyone explain how the answer is 48??

- crazy1234 June 22, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Best Case: You keep picking blue balls for three times and the 4th ball is surely of different colour. -Reason: You ran out of Blue Balls.
Worst Case: You keep picking green balls for 47 times. The 48th ball you pick is surely a different one. Reason: You ran out of green balls.

But understand the average case is not 26. The average case includes probability more than straight logic.

- Giridharan July 01, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

best case is 2....you pick a blue ball, then you pick a green ball...that's it...this is the best case.....first two balls are of different color

- @ce October 24, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

48

- amez June 07, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 3 vote

in the best case 4 and in the worst case it would be 48

- raja January 07, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

2 in the best case

- Anonymous January 15, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Best case will be 2 when u get two different color balls on first 2 attempt

- Rachit March 04, 2014 | Flag
Comment hidden because of low score. Click to expand.
-2
of 2 vote

ans is 4 in best case.

- pradeep goswami March 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

can someone explain how

- s April 01, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

2 in best case.

- @ce August 05, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

best case is 2....you pick a blue ball, then you pick a green ball...that's it...this is the best case.....first two balls are of different color

- @ce October 24, 2012 | Flag
Comment hidden because of low score. Click to expand.
-2
of 2 vote

Depends on the color of the first ball you pick.
If you pick blue first then at max 4th ball will be of another color.

- tuubow June 06, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

71 balls

- Anonymous July 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
-2
of 2 vote

71 balls

- bhargav July 25, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More