Qm

A painted cube cut into 27

A solid wooden cube is painted red on all six faces, then cut into 27 equal small cubes (3 by 3 by 3).

How many of the small cubes have paint on exactly two faces? Also count those with paint on three faces, exactly one face, and no faces, and check that your four numbers add up to 27.

Show a hint

Where on the big cube does a small cube sit if it has three painted faces? Two? One? None?

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

How many diagonals does a cube have?The angle between two face diagonals of a cubeThe bookworm and the ten volumesDropping needles to estimate piHalving a cake that already has a piece missing
All questions →