Microsoft Interview Question for Program Managers






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

oops, generalize series and using limit,
Sn = { 1/2 + 1/4 + 1/8 + ... + 1/(2^n) }
2Sn = { 1 + 1/2 + 1/4 ... + 1/(2^(n-1)) }
2Sn - Sn = { 1 + (1/2-1/2) + (1/4-1/4) + ... (1/2^(n-1) - 1/2^(n-1)) - 1/(2^n) }
= 1 - 1/(2^n)

lim n-> inf Sn = 1 - 1/(2^n)
= 1

- Zaphod May 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Draw a square. Color half of the square. Out of the remaining half, again color the remaining half.. Repeat and show that what is left uncolored gets reduced to its half so the totally uncolored depends on how many times we color it. since we go on to infinity it will be zero. If he/she argues that there will always be some uncolored portion left, tell him/her that that will be case only when you stop doing this exercise...which will be NEVER as you want to do it till infinity.

- Saurabh Mangal November 16, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Sn = { 1/2 + 1/4 + 1/8 + ... }
2Sn = { 1 + 1/2 + 1/4 + ... }
2Sn - Sn = { 1 + ( 1/2 - 1/2) + ( 1/4 - 1/4 ) + ( 1/8 - 1/8) + ... }
= 1

- Zaphod May 10, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think this series is also useful in calculating the floating point mantissa.
I know then we need to insert certain 0's
but in case we have the mantissa as 1111111111111111111111
then the value of mantissa would form the same series while converted to decimal
1* 1/2 + 1* 1/4...
ans as we know as this-> infinite the mantissa -> 1 (.999999999999999999999999)

- Anonymous July 07, 2010 | Flag Reply


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