Studying up for interviews and going through these questions.
8.Given a cube of size n*n*n (i.e made up of n^3 smaller cubes), find the number of smaller cubes on the surface. Extend this to k-dimension.
I don't understand the question very well. For one side, we'll have n^2 number of cubes on the surface. And there are 6 sides on a cube, so is the answer just 6n^2? That seems too simple to me. Any help would be appreciated.