Thomson Reuters Interview Question for Software Engineer / Developers


Country: India
Interview Type: In-Person




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

Case 1) all 3 white caps: Impossible as per one of the clauses
Case 2) 1 blue 2 white: Unfair, because the one with the blue cap wins. So impossible.
Case 3) 2 blue 1 white: Two of them see 1 white and 1 blue. They are sure that they cannot have a white cap. Because then the one having blue cap will win. Then the one with the blue cap will always lose and one of the other two wins. So Unfair and impossible.
Case 4) 3 blue caps. Only possible option.

- s100banerjee March 28, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

We know that

WWW would be wrong because this violates 2
We know that

BWW would be unfair because the person who sees both whites would win.

The only way this would be generalized to all 3 is if all 3 wore blue hats.

So,
BBB

- SK March 29, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Explaining case 3) 2 B 1 W: Two of them see 1 white and 1 blue. They are sure that they cannot have a white cap. Because then the one having blue cap will win. So 2B 1W is fair for the two employees. But this is unfair for the other single employee. Because in 2B 1W he always loses. So 2B 1W is unfair and impossible.

- s100banerjee March 28, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@s100banerjee
The posted answer is correct. But there is a mistake in the explanation for Case 3

Case 3) 2 blue 1 white: Two of them see 1 white and 1 blue. They are sure that they cannot have a white cap. Because then the one having blue cap will win. Then the one with the white cap (not blue cap) will always lose and one of the other two wins. So Unfair and impossible.

- ashwinig November 19, 2016 | 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