Bloomberg LP Interview Question
Financial Software DevelopersThis 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
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)
I disagree with the answer posted above by "Anonymous"
- Answer? March 23, 2010Problem 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