5

Cutting a cake into 8 pieces

 2 years ago
source link: https://www.programmerinterview.com/puzzles/birthday-cake-8-pieces/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Try figuring this one out on your own – as a hint we’ll tell you that you’ll have to “think out of the box” to get the answer. There is definitely something unique that you will have to do in order to come up with the answer. You can read the answer below.

The answer: stack the pieces

The “correct” answer is to cut the cake in quarters (4 pieces) using 2 of the cuts – one horizontally down the center of the cake and the other vertically down the center of the cake. This will leave you with 4 pieces (or slices) of cake. Then, you can take all 4 pieces and arrange them in a stack that is 4 pieces high. Finally, you can just cut that stack of 4 pieces in half – using your third and final cut – and then you will end up with 8 pieces of cake!

You might think of this as sort of a trick question, since moving the pieces is something “out of the box” – but somebody asking this question is probably looking for that kind of out of the box thinking.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK