Yahoo Interview Question for Testing / Quality Assurances






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

So, you have to assign 3 bit number to each corner of the cube. Consider the geometry of the cube and represent each binary digit as one of the three axis x,y,z and choose value as 0 or 1 depending on the alignment of the cube in that direction. In this way you can assign binary digits to the cube. Now the beauty of this is that if you travel through the cube covering each corner at most one it will generate a 3 bit Gray code.

- gauravk.18 March 31, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

So you need to number the 8 corners of a cube with 8 binary numbers. This is the problem of a unit cube. Check out this diagram to understand the solution.

www dot relisoft dot com/Science/images/cube dot gif

- Mayur October 09, 2007 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

www.relisoft.com/Science/images/cube.gif

- Time pass ! February 19, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

the smart answer is GrayCode, for example we use GrayCode for the same reasoning while minimizing a boolean function using Karnaugh Maps[Digital Electronics], thats it...

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

MrSmartyPants: your answer/reasoning looks okey to me.

- googler August 13, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

simply imagine yourself sitting inside a cube at origin(0,0,0)
for example the room one might be sitting in and can easily have imaginary moves to all corners of room.

- PS October 24, 2009 | 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