Morgan Stanley Interview Question for Analysts






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

If u think critically, the Problem simplifies to number of diagonals of an N sided polygon (cuz that is when u exclude the adjacent vertices or nodes).The answer for which is N*(N-3)/2 and so the asnwer's there!

- VK July 07, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

N=7

There are 14 songs of 2 minutes so 14 pairs.
The total number of pairs posible is 2-combinations of N. From this number we have to substract the pairs that would form with the adiacent persons. The total number of pairs standing next to each other is N.

So (N/2)*((N-1)/(2-1))-N=14 reduced looks like: N^2-3*N=28 -> N=7.

- Bogdan October 25, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Something doesn't look right here. I've gone over this several times, and with N = 7 you end up with 15 pairs, and not 14. Say we number from 1 to 7, clockwise (not that it matters):

1-3, 1-4, 1-5, 1-6, 1-7
2-4,2-5,2-6,2-7
3-5,3-6,3-7
4-6,4-7
5-7

In the above a-b represents the pair (a,b). So, we have 5 + 4 + 3 + 2 + 1 = 15, not 14. So what am I missing? The problem states "each possible pair of persons" not adjacent to each other. AFAIK, the above 15 pairs are all the possible pairs, assuming (a,b) is the same as (b,a) of course.

- Me October 29, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Dude 1-7 is adjecent ..so its exactly 14

- mkhs October 29, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Duh. Sigh. Thanks, mkhs. This "dude" is wrong. Note to other problem solvers: Watch out for skewed diagrams.

- Me October 30, 2007 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Dude the pair 1-7 wont be counted as it is adjacent

- Neeraj September 30, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

The answer is : 2*(nC2 - n) = 28
solving for n gives n = 7

- DareDevil May 27, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

2* (n!/(2!*(n-2)!) - n )= 28
...
...
N = 7

- Longge November 13, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

N*(N-3)/2 is the number of pairs, so clearly N*(N-3)=28=7*4, hence N=7

- easy May 12, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

VK's reasoning is correct, and the answer is N*(N-3)/2 = 7

- smartAss July 17, 2009 | 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