Amazon Interview Question: How many smaller cubes are co... | Glassdoor.co.in

Interview Question

Business Analyst Interview Hyderabad

How many smaller cubes are completely invisible in a n*n*n

  rubic's cube?
Answer

Interview Answer

7 Answers

3

n^3- 6n^2

The number of cubes are n^3(volume).
The number of cubes exposing one or more sides( 6 *( n^2) - all cubes on the sides.)
Number of invisible cubes are n^3- 6n^2 .

Vivekananda on 07-Jun-2012
3

Isn't the answer none since the question says "completely invisible"? every unit is visible by at least one side so any sub cube (made of these units) has a portion exposed.

luis on 13-Jun-2012
4

N*N*N-(N*N*2+N*(N-2)*2+(N-2)*(N-2)*2)

ram on 13-Jun-2012
18

(N-2)^3

Sofya on 25-Jun-2012
3

(n-2)^3 you can verify by assuming n=4. Try to visualize invisible cubes and compare it with answers.

Raj on 28-Apr-2014
5

(n-2)^3 you can verify by assuming n=4. Try to visualize invisible cubes and compare it with answers.

Raj on 28-Apr-2014

This post has been removed.
Please see our Community Guidelines or Terms of Service for more information.

Add Answers or Comments

To comment on this, Sign In or Sign Up.