Goldman Sachs Interview Question: Assuming you have a large cub... | Glassdoor.co.uk

Glassdoor uses cookies to improve your site experience. By continuing, you agree to our use of cookies. OK | Learn More

Interview Question

Software Engineer Interview London, England

Assuming you have a large cube shaped by small cubes

  together, their number is 1000 How many cubes will be visible?
Answer

Interview Answer

4 Answers

3

8+(8*12)+((8*8)*6)

Interview Candidate on 1 Mar 2011
14

A cube will have n^3 sub cubes. With some guessing you get to 10^3 = 1000.

Now the cube that fits within the 10^3 cube is a 8^3 cube (take off one layer from each side). So the total number of outer faces is 10^3 - 8^3 = 488.

Anonymous on 7 Mar 2011
0

right another way of solving it which I think is better
Thanks,
Kiki

Kikiandki on 7 Mar 2011
1

10 x 10 + 9 x 10 + 9 x 9 = 271

Anonymous on 11 Sep 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.