Pergunta de entrevista da empresa Microsoft

You have a cake. How many straight cuts do you need to divide the cake into 8 equal pieces?

Respostas da entrevista

Sigiloso

13 de set. de 2012

It depends on the shape of the cake.

21

Sigiloso

16 de set. de 2012

3 First 0 degree Second 90 degree No I have 4 have equal parts. Third From the Centre height wise. (Z-axis) Now I have 8 equal parts.

17

Sigiloso

7 de set. de 2012

With 4 straight cuts through 0, 45, 90, and 135 degrees You can cut the cake into 8 equal pieces

7

Sigiloso

8 de jul. de 2015

3 straight cuts

1

Sigiloso

13 de set. de 2019

If the pie is real, then 4 cuts. If it is a hypothetical pie, then you can make one cut and then stack both of them on top of each other. Make another cut and repeat. At the third step, you will have 8 pieces

Sigiloso

14 de set. de 2019

What shape is the cake? Don't assume. Gather data to inform your answer.

Sigiloso

14 de set. de 2019

The question as phrased does not ask for doing it in the fewest cuts. If that is an acceptance criteria, you need to know going in.

Sigiloso

21 de out. de 2012

^ Agreed. You can also think of it as stacking 'em up. Can be done in 3 cuts.

Sigiloso

6 de set. de 2012

didn't expect this question, but I got the answer. You should think about it.

5