Your job is to measure 45 minutes if you have only two cords and matches to light the cords.
1. The two cords are twisted from various materials, so their different segments can burn at different rates.
2. Each cord burns from end to end in exactly one hour.
You are given a cube that is made with the help of 10x10x10 smaller cubes summing up to a total of 1000 smaller cubes. You are asked to take off one layer of the cubes.
How many remain now?