## 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.

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

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

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

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...

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

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.

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.

### 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.