Bloomberg LP Interview Question for Financial Software Developers






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

Person C is wearing Black hat.

A is not sure of his hat color either because he sees B&W or B&B.
B on hearing A say "Dont know" , Would arrive at this conclusion. Now had it been B&W with C wearing White, B would have said it is wearing black instead of saying "I dont know".

So B&W is eliminated. And B is not sure since it sees C's hat is black.

- UT December 15, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

bright solution

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

great!!

- Anonymous May 05, 2010 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

A sees (B&W || B&B). Hence, A cannot decide.
B has to obviously see a black hat on C to not decide an answer. Coz, if B sees a white hat on C, then, B can conclude that he is wearing a black hat (by using A's answer) since only B&W and B&B are two possibilities.

So, C is wearing a black hat.

- Helper December 17, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Person C is wearing White hat.

Since A is not sure of his color, he is indicating that atleast one of
B or C is white ( since there are only two blacks )

Now, B is also not sure of his color, which points to that C has to be White,
because had it been that C is Black, then B could have easily guessed his own color
as White drawing information from A's answer.

So C is wearing White hat.

- Thirumalai Thathachary December 15, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

but there are 3 black hats, not 2. So if A is not sure, he is indicating that he either saw a B&W or a B&B.

The only way I see that C knows what he has is if one of the others know. If A or B knew, one would have seen 2 whites automatically making C's hat white. Other than that, what you're saying seems incorrect.

- roleston December 15, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

yup...C has white hat!!

- sg December 15, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

There are 7 potential solutions:

# A B C
- - - -
1 B B B
2 B B W
3 B W B
4 B W W
5 W B B
6 W B W
7 W W B

A can only trivially eliminate #4 since A must know the answer in #4.

# A B C
- - - -
1 B B B
2 B B W
3 B W B
5 W B B
6 W B W
7 W W B

B and C now know that B and C are not both white, but this provides no additional information.

B can trivially eliminate #6 since he would then know the answer.

1 B B B
2 B B W
3 B W B
5 W B B
7 W W B

C must know that #4 and #6 have been eliminated.

C must have guessed black since he's got a 80% chance of being right.

- Nick December 16, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Ah. At the end, If A was unsure, and B sees a white-C, then he would know he is black since A saw white-C and not-white-B. Which also eliminates #2 since C can infer it.

So, I guess it wasn't a guess. :)

- Nick December 16, 2009 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

C is Black!!!!!!!!!! :)

- zhuang December 17, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

C is black black black...:)

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

its black. y is there so much confusion??

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

C is black, confirm.

- henry January 20, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

C is wearing black
Condition one:
A says "I don't know"
So either B or C must have White hat on his hat.
Condition two:
A says "I don't know"
So either A or C must have White hat on his hat.

So possible number os solution are:
A B C
1 W W B
2 B W B
3 B B W
4 W W B
5 W B B
6 B W W
7 B B W

3 and 6 are invalid option otherwise A and B know the color of thier hat.
Since C answers the hat color correctly so color of condition 1, 2 ,4 ,5 and 7 satisfies all the conditions.

Hence color of C is Black.

- Mritunjay January 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Where is your BBB :)

- Sam October 19, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Consider the following.

-> A cannot determine by himself by himself what he is waering by looking at B & C. this means B & C are both not wearing White hats. They are either wearing Black hats each or Black and White.

-> B cannot determine by himself by himself what he is wearing by looking at A & C. this means A & C are both not wearing White hats. They are either wearing Black hats each or Black and White.

Somehow we have to elminate the Black and Black options from each case. If we are able to do this then.

When C looks at A & B he will find they are both wearing White hats in which case he will deduce he is waring Black. If he finds they are both waring Black then he will deduce he is waering White.

- AD February 08, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Consider the following.

-> A cannot determine by himself by himself what he is waering by looking at B & C. this means B & C are both not wearing White hats. They are either wearing Black hats each or Black and White.

-> B cannot determine by himself by himself what he is wearing by looking at A & C. this means A & C are both not wearing White hats. They are either wearing Black hats each or Black and White.

Somehow we have to elminate the Black and Black options from each case. If we are able to do this then.

When C looks at A & B he will find they are both wearing White hats in which case he will deduce he is waring Black. If he finds they are both waring Black then he will deduce he is waering White.

- AD February 08, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@AD
I have doubt in ur last sentence...If A & B wears black, then
C can be wearing black r white(becos there are 3 black and 2 white hats in total)..
only in case when A & B are wearing white, C can deduce its color(i.e. black)

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

C wears a black hat definately..

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

C wears a black hat definately..

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

A did not know so he saw either B-Black C-Black; B-White C-Black; B-Black C-White.

Had he seen B-White C-White, he would have know that he had a black hat on because there are only two white.

Let's just list what be could have seen. 1.A-White C-White; 2.A-White C-Black; 3.A-Black C-White; 4.A-Black C-Black.

We know that 1. cannot be true as B would have known he was wearing black for the same reason A would have known. Also 3. Cannot be true because B, knowing A could have seen a Black and White hat on B and C, could have reasoned that he had a black hat on because C had the white hat. Since he responded "I don't know", that leaves us with 2. and 4., both with C wearing a black hat.

- nhawks06 February 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

A did not know so he saw either B-Black C-Black; B-White C-Black; B-Black C-White.

Had he seen B-White C-White, he would have known that he had a black hat on because there are only two white.

Let's just list what B could have seen. 1.A-White C-White; 2.A-White C-Black; 3.A-Black C-White; 4.A-Black C-Black.

We know that 1. cannot be true as B would have known he was wearing black for the same reason A would have known. Also 3. Cannot be true because B, knowing A could have seen a Black and White hat on B and C, could have reasoned that he had a black hat on because C had the white hat. Since he responded "I don't know", that leaves us with 2. and 4., both with C wearing a black hat.

- nhawks06 (last one had some typos, its 3:15AM) February 21, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

When A says I DON'T KNOW,

B&C knows that they have either BB or BW

When B sees:
if C was white, he could have said B was black, because thats the only possibility.
if C was black, B could have been either Black or White, so he sayss 'I DON'T KNOW.

So C knows he is BLACK.

- Naren Narayana March 23, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Guys,
Not really complicated when you write out the seven combinations:

BBB
BBW
BWB
BWW
WBB
WBW
WWB

The only one that would tell A what he is wearing is if he sees two whites, so eliminate the BWW condition so now person B has six conditions left:

BBB
BBW
BWB
WBB
WBW
WWB

If he sees A wearing black and C wearing white, he knows he has black, so eliminate that condition. If he sees A and C both wearing white, he knows he has black, so elimiate that. Now when it is person C's turn, he has 4 possibilities left:

BBB
BWB
WBB
WWB

All of them have him wearing black.

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

Great solution!

- will October 25, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

2 possibilities :
1) ABC : BBW
2) ABC : WWB

C will say either both of them have have Blacks or Both of them have whites

- World's Next Super Power April 18, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Most of you guys are right.
C wears black.

- Huangxinyu June 25, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

jeez man write the question correctly. He (the OP) wrote that (for person C) 'without having their blindfold removed... their hat, they are correct', leading me to believe that C can tell his hat's color and A's and B's too. Which was not possible...

What a waste of time (and thinking I was stupid :D)

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

C has only black, if A and B says "I don't know"

- Karthik December 15, 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