## Informatica Interview Question for Software Engineer / Developers

Country: India
Interview Type: Phone Interview

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

1000^3 small cubes if you need solid

1000^3 - 998^3 if you need hollow

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

Can u please elaborate why we need 1000^3 - 998^3 for hollow cubes

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

n=1 is a special case.
for n=1, hollow=solid=1 cube.
for n>=2, solid = n^3 , hollow=n^3 - (n-2)^3.
for solid cube n^3 unit cubes make for solid cube of side n
and
for hollow cube: a solid cube of side (n-2) is removed from inside of the solid cube of side n.

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

solid cube (1000^3) - hole cube (998^3)

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

Thanks Mohit

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

putting it simple, a hollow cube of side n is a solid cube of side n, where the inner solid cube of side (n-2) is carved out

a hollow cube of side n = a solid cube with side n - a solid cube of side (n-2)

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

Another method for hollow: 6*(1000^2) -12*1000 + 8

area of one side (1000^2) * number sides(6)
-
size of side (1000) * shared edges(12)
+
restore shared corners (8)

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

Nice, I was in process of typing this out until I noticed you wrote it haha.

Comment hidden because of low score. Click to expand.

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