← All problemsSign in

3D Cubes

Chandan gave his son a cube with side $N$. The $N*N*N$ cube is made up of smaller $1*1*1$ cubes. Chandan's son is extremely notorious just like him. So he dropped the cube inside a tank filled with paint. The cube got totally immersed in that tank. His son was somehow able to take the cube out of the tank. But soon he realized that the cube had gone all dirty because of the paint. Since Chandan

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start