Bloomberg LP Interview Question for Financial Software Developers






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

I disagree with the answer posted above by "Anonymous"

Problem space: Person A has 100 possible change amounts - 0 through 99. The same applies for person B.
Thus possible outcomes = 100 * 100 = 10000

Favorable outcomes have to include having full dollar amounts hence (0,0) has to be a possible solution apart from the other pairings making the favorable outcome space - {(0,0); (1, 99); (2,98);... (98,2), (99,1)}

Probability = 100/10000 = 1/100

- Answer? March 23, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

0 doesn't mean the change amount...10.0 is $10... so we can neglect 0 for the space

- Anonymous March 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

0 should be considered...

- Anonymous March 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@Answer? : Yop. you are right. There are 100*100 possible combinations for x+y [as both x and y can range from 0..99 which is 100 numbers], but only 100 of those combinations satisfy x+y=100. Hence probability = 100/(100*100) = 1/100

- Bandicoot March 27, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

This is similar to two dice having a sum prob.... Total no. of cases are 99*99 and possible no of cases = 99 ((1,99),(2,98)...,(98,2),(99,1)). So prob will be 1/99

- Anonymous March 23, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

...

- Anonymous March 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

you ignore the case that 0+100,hiahia

both X and Y are integers:)

- beyondfalcon April 12, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

the sum of change could be anything 0 to 99 = 100 outcomes....one favorable outcome = 0.
so, probability=1/100

- Neerav March 24, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

1/100

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

No ware in question it says X = Y = 100, so all answers are based on the assumptions that X = Y= 100...
So to be in terms on X Y its P(X)U p(Y) = P(X U Y) and actual answers depends on valus of X and Y for 100 what is mentioned above is right.

- Yogesh April 15, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

ans should be

(2* 98 + 2)/ (100^100)

- raja August 02, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Let's make a matrix. We are looking for X+Y=100 or 0. Clearly there are 100 such entries.

- Anonymous August 05, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

my mistake..
but still i m struggling
i guess the ans should be 2/100

since one case be when X+Y=0 (e.g X= 3.0 & Y=9.0) and the other one is obvious when X+Y=100 (X=9.50 & Y=7.50)

- raja August 06, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Do we care how much each spent? I would say 1/100.

- Andeea November 11, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

correct: right answer is 1/100

- Anonymous February 11, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

2/100

100^2 possible combinations, 200 "good" ones.

- t.g May 30, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

consider two sets {1,2,....99} and {0}
A's expenses could be either an integer i.e.{0} or decimal number {1,2,...99}
Case 1
A's expenses are integer
i.e. B's expenses should also be integer
1/2x1/2

Case 2
A's expenses is a decimal number
then b's expenses should be the decimal inverse to make the sum zero(100).
1/2x1/99

either case 1 occurs or case 2

(1/2x1/2)+(1/2x1/99)

- SG August 12, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

A = 0 ~ 99
B = 0 ~ 99

P(A + B = 0) = 1 / 10000

For any A, we can find a B where A+B = 100, i.e (A=1,B=99) or (A=2,B=98) ...
P(A + B = 100) = 100 / 10000 = 1/100

So P(0 cents) = 1.01%

- Zheng Gao September 06, 2014 | 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