Deshaw Inc Interview Question for Software Engineer / Developers






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

0 : 1
1 : 6
2 : 12
3 : 8
4 : 0

- Vish February 14, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

In any cube of dimension “n” painted and cut uniformly, there are 8 cubes with 3 sides painted, 6(n-2)^2 cubes with one side painted, 12(n-2) cubes with two sides painted and the rest (n^3 – 8 – 6(n-2)^2 – 12(n-2)) cubes with no paint on any side. In fact one of the clues is enough.

- Vish February 14, 2008 | Flag
Comment hidden because of low score. Click to expand.
1
of 0 vote

4 = 0
3 = 8
2 = 12
1 = 6
0 = 1

- Shweta Mogadpally November 05, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Can you please explain the formulae? How to obtain that?

- Hmmm March 31, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

This can be explained in the following way.
The cubes that have all the three faces painted will be on the eight corners of the Bigger cube.So 3 sides painted = 8.

Now the cubes with two sides painted will be the one that are on the edges of the Bigger cube ( obviously not considering the ones on the corner). As we have 12 edges in a cube, so it comes down to 12(n-2). (n-2) can be explained as n-(removing the two corner cubes, 1 from each side).

Cubes with only one side painted will be the one on the face of the Bigger cube except the ones on the edges and the corners. This comes down to 6*(n-2)^2.

And the rest of them are unpainted cubes

Cheers

- keshav August 17, 2008 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

U can imagine the answer better if u visualize a rubik's cube having all sides red. makes the thinking simpler. if u've got one better have a look at it to understand...

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

In general...
here 'a' is side of cube, so you have to split the cube into n*n*n cubes ( each one unit)
no.side formula
4----- 0 always
3----- 8
2----- 12a-24
1----- 6a²-24a+32
0----- valume -(sum of all 1 to 4 sides)

any .....wrong????

- Dinakaran.A GCT July 31, 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