Yahoo Interview Question for Software Engineer / Developers






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

Dice 1: 0 1 2 7 8 {9 or 6} as (9 is mirror of 6)

Dice 2: 0 1 2 3 4 5

- L.Ppt July 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

012789
123456

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

Wrong. How will you represent 06,07,08 or 09 using the above solution?

This is a trick question. It is mathematically impossible to represent all the dates using unique numbers. The trick lies in the fact that if you invert 6, it becomes 9. And if you invert 2, it becomes 5. So, the correct solution is:

Dice 1: 0,1,2,3,4,6
Dice 2: 0,1,2,3,7,8

- Deephan September 14, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

Good thinking about the 9 (inverting the six), but don't you think 5 cannot be inverted to get 2. It has to be inverted and mirror imaged. 3 in Dice 1 can be replaced by 5 and your solution would hold good.

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

Well.. I would say, do your homework. 5 doesnt have to be mirror image. All you have to do is just invert. You can try download an image of 5 and rotating it 180 degrees. Inverting a 3 doesnt even closing resemble a 5. Unless you prove me wrong.. :)

- Deephan September 16, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

I apologize. I am wrong. It has to be mirrored imaged. But then inverting a 3 would not resemble 5. So, i need to rethink the solution.

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

The solution should be:

Dice 1: 012345
Dice 2: 012678

- Deephan September 16, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Dice 1: 012345
Dice 2: 126789

- Anonymous September 28, 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