Techlogix TATA Consultancy Services Interview Question
Software Engineer / Developers ConsultantsCountry: pakistan
after cutting the cake horizontaly and vertically put all pieces over one another and cut from middle 8 equal pieces
A small extension for this que.I was asked to cut in 8 pieces such that everybody gets cream also.Note that in the above que 4 people wont get a cream
a. Make 2 cuts perpendicular to each other. (It will make 4 pieces)
b. Then stack all 4 of the pieces and then split all four of the stacked pieces with the third cut. It will make 8 pieces.
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. .
you get four pieces in two cut,and pile up the four pieces then cut from top to bottom.it's 8 pieces
I think that's the right approach. If piling is too messy, you could also lay out the cake pieces one next to the other two-dimensionally and make the cuts. So cut in two, put one half below the other, cut. Then take the four resulting pieces and align them all so that a line goes through their middles and make the third cut.
Following are my suggestion :-
- hprem991 April 26, 2013Method 1 :-
1> First Stroke :- Cut Horizontal.
2> Second Stroke :- Cut Vertical.
3> Third Stroke :- Cut Across the Height of the Cake.
Method 2:-
1> First Stroke :- Cut Horizontal.
2> Second Stroke :- Cut Vertical.
3> Pick each of these pieces and stack upon each other making a pile of 4 pieces.
4> Third Stroke :- Cut through all the 4 pieces.