Math Riddle: Can You Cut the Cake in Half? Easy & Tricky Interview Riddle
HTML-код
- Опубликовано: 12 сен 2024
- Tricky Interview Riddle: Divide the cake into two equal portions with a single straight cut.
It's a beautiful tricky interview math riddle that tests your basic math concepts.
It's a hard riddle with a simple solution.
Jeremy and Jane would like to divide a rectangular cake in half, but their friend Bob (who can be very annoying sometimes) has already cut out a piece for himself. Bob’s slice is a rectangle of some arbitrary size and rotation. How can Jeremy and Jane divide the remaining cake into two equal portions with a single straight cut?
- The single straight cut can pass through the cut-out portion.
- Please note that they both need an equal amount cream and the toppings, so a cut along the height would not be accepted.
Pause the video and think mathematically.
You are most welcome to share puzzle, math problems or any topics for upcoming videos.
Gmail : logicreloaded@gmail.com
Facebook(message) : / mohammmedammar
Also try these brilliant mind blowing puzzles:
5 Pirates PUZZLE (Version 2) | 100 Gold Coins 5 Pirates
• 5 Pirates PUZZLE (Vers...
Trains & Bird Puzzle || Challenge for Math and Aptitude lovers
• Trains & Bird Puzzle |...
Very Tricky Race Puzzle
• Very Tricky Race Puzzle
killer puzzle with such basic solution
Killer puzzle indeed...I'm going to kill Bob lol 😂
Indeed man!
And here I thought that you would;
-Measure the hole and cake "height" and lenght" itself.
-Calculate their volume.
-Substract hole from cake.
-Divide it by "height" and cut at the corresponding "lenght"...
But I guess this solution would be more appropriate if the shape of hole was more irregular...
Haha
I thought out of the box and got the same solution. Since the size or the rotation of the slice or cakes in not given, the only unique property the rectangles have is their midpoints. And there are two mid points, we need a stright line, two points is enough to draw a straight line.
2 dimensional analogue of the 3D "Ham Sandwich Theorem". There is always a plane cut that divides two arbitrary shaped pieces of bread and the piece of ham into equal portions. The solution is the same as this puzzle, just make sure the plane passes through the centroids of all the items.
The centeroid is the centre of gravity. It can balance a small area at a large distance on one side, with a large area at small distance at the other.
If you take an arbitrary shape, and draw all the lines that cut it in half areawise, the lines don't all intersect at a point.
If you take an equilateral triangle, and divide it into 9 smaller triangles. (in rows of 5,3,1) Then you can see that the line through the centre has 5/9 of the area below it. The halfing lines parrallel to the sides form a small triangle round the centre.
@@donaldhobson8873 Yeah you're right, silly me.
@@donaldasayers Its an easy mistake to make. My dad made the same mistake when I told him.
That''s even a more degenerated case as it comes from a little theorem about shapes that are their own image under central symmetry. (or in other words, shapes fro which it is possible to find a central symmetry that applies the shape to itself)
In that case, it comes that wherever is your cut going through the center of symmetry, it has to divide the shape in two equals. (by definition!)
And when you have those center being collinear, then you can draw the cut between them. Two points are always collinear.
So, no need to use the "Ham Sandwich Theorem", but only material you learn when you are 12.
In a real interview, you give that final version. When the interviewee is stuck, you ask him how he would divide only the big rectangle. Then ask him other possibilities until he used diagonals and bisectors. At some point, it should click that he can draw any line going through the center. Then you go back to the one with the hole.
The hard work is being able to abstract what was just learned and apply it. It's not really hard here, but enough to weed out people that will do their job poorly if it requires some thinking.
Awesome awesome ❤️❤️.... learnt something today.... enjoyed it 🙌🙌🙌🙌
Without measurements it is as arbitrary for you to know the exact center of the cake and the center of the missing rectangle as it is arbitrary for me to know the area of the cake and missing rectangle. So my solution of slicing the cake with equal amounts of surface area works perfectly well. : - )
Its simple but very intersting !!!
The fact that a straight lign pass the center of a rectangle always cut it into to equal area (you can proove it easly by similar triangles which scaled by 1 so congruent and ....)
So if we make a straight lign pass the centers of the 2 rectangles we are done !!!!
Me after seeing the solution : Why couldn't I think this way, am I really too dumb ?
Not dumb. The education system doesn’t teach is to think this way. We are always taught the longest, most complicated solutions then later may or may not be taught the “shortcut.” So, we always expect a solution to be overly complex. Basically, education failed us.
Superb sir🙏, it is really simple but hard to think...
I was going to cut a piece from the centre to fill Bob's cut out. Then cut through the middle making sure the missing part is halved ...
Yours was easier.
That doesn't meet the requirement of using only a single straight cut it requires at least 5 straight cuts.
I cut the cake in the middle and gave extra to the size of the rectangle.
Give half of the size of rectangle
I think that's a wrong answer, because he said both need equal amount of creem and toppings but in this solution, it doesn't satisfy
all your riddles are all very simple to follow yet solid.
Wow ! Simple common sense but uncommon. Thank you Ammar ❤.
I cut out another piece of the same size, then cut the cake in half, then gave the cut-out piece to anyone who complained I wasn’t solving it with one cut.
A rectangle is centrally symmetric, which means that any straight line through the centre of the rectangle will always split it exactly in half. This is easy to see because a straight line through the centre also possesses point symmetry in this point, and since all figures involved are point symmetric about the centre of the rectangle, the two halves are not just equal in size, they are the exact same shape and can be mapped onto each other via reflection through the centre.
In this case, it is impossible to calculate how much cake was cut out and thereby fairly divide the cake, since the dimensions of the missing piece are not given. However, if both people get half the original cake (assuming the hole wasn't there) and also half the hole, then they will definitely end up with half the remaining cake. Since both the original cake and the hole are rectangles, they can be split in half by a line through their respective centre, so a line through both centres (which is always possible with two points) will evenly divide the remaining cake.
Great. Really loved it.
Excellent man.. i really love your videos..
What about cake and topping? Would both pieces have equal amount of these if the cake is cut this way?
Yay! You included the 'value' of the cake topping! 💖 Also...where is Bob? I have a knife and know what he did...where is he? RUN BOB, RUN!!!! 😆
Very funny!!
LMAO. A friend of mine went on an interview with a largish tech company. Interview went well until they trotted out these dumbass puzzles. She walked out. Two days later they called her back in for a second interview, she said no because of the puzzles. The next day they called and apologized. Still a nope. These puzzles can be fun and are ok for entry level positions. After that, they're insulting. I've never used them when doing interviews.
Amaar bhai always op .
👍👍
Pick any angle, slide the knife across the cake. The areas change continuously, exactly one position will half the cake.
That's an existence proof. It is correct but not constructive.
Make a vertical cut at (ab-xy)/2*b from either of edge if xy is area of hole and ab is area of cake. b is breadth and a is length. Basically each half volume is (ab-xy)/2 and since breadth is b need to divide by b
Good Puzzle
Cut in the middle of a cake with extra cake (half of rectangle ) to left portion.
Nice, intuitive solution. Far better than the kludge I came up with.
That's really amazing 😎
Such a cool experience 👍👍
Thanks a Trillion 😊😊
Beautiful puzzle, looks hard... Where to begin? And then, surprising solution!!
Suddenly it became so simple...😀
Thank you Ammar for excellent question and brilliant answer!!
The first big diagonal is passing through the center of the big rectangle, so it cut it to two pieces with equal area.
But! there is a black hole in the cake.
Since the line goes through the middle of the "black hole" it cut the black hole also into two equal areas.
Each one get half of the big rectangle, minus half of the black hole rectangle.
Brilliant Ammar!
If Bob had really wanted to be annoying he could have cut a half-circle that wasn't aligned to any side of the cake or the centroid. :D
Amazing puzzle
Before I watch:
I think any line drawn through the center of a rectangle cuts it in half. So if you draw a line through the center of both rectangles, it cuts the big cake in half minus the bits lost, but since the bits lost are equal the whole thing is cut in half
One loop hole is there. I sent this screenshot to my friends and everyone answered "divide the cake diagonally from bottom left corner to top right corner." And unfortunately they were telling the correct answer but not logically. Take a look at the first image "yellow rectangle with blue rectangle in it". Make diagonals of small rectangle, let's assume the intersection point of smaller rectangle is "P". Now draw diagonal of yellow rectangle from bottom left to top right, it will pass right through point "P".
Logically this diagonal is passing through mid points of both the rectangles. If the blue rectangle was little above or below its current position it would have been more logical. Just a suggestion, no hard feelings.
Yes bro, i realized it soon after posting the puzzle. But your comment about the screenshot thing also made me feel that I should have taken care of the screen very well. Thanks for the feedback, I'll certainly keep it in mind for upcoming puzzles.
@@LOGICALLYYOURS Apart from this comment thing. I was searching for some website or some RUclips channel where I can read or watch truly logical questions and trust me, your channel ended my search. I've seen a number of images on social media claiming "90% will fail" but almost everybody knows the answer but when I visited your channel and when you say "90% will fail" then trust me, more than 90% people fail. Keep it up bro. Kudos.
@@LOGICALLYYOURS You do say 0:18 that Bob's slice is of arbitrary size and rotation. It was clear the image wasn't the only possibility for where Bob mutilated the delicious cake while no-one was watching because he is mentally disturbed...lock him up already, he's a danger to cakes! 😁
You may have noticed I'm somewhat disturbed by how Bob cut that cake lol 😲😭😬😂
Awesome puzzle 👍👍
They can take out the mid points of both the rectangles by the intersection of diagonals and then make a cut passing through both mid points.
This is in principle a nice idea. But how do you see the intersection of the diagonals in the missing small rectangle? And what if the center of the large rectangle is in the small rectangle? You won't see that either. This is a great interview question because in real life you get a lot of stupid questions and the expected correct answer is also stupid.
@@amfulger intersection of diagonals will give u the centre. We r not gonna draw that on cake 😂. In mathematics, we assume...
Very interesting. Thanks for the upload.
I would have worked out the square meter of the whole cake and the rectangle. The adjusted my cut line to allow for this.
so happy I solved it. I think it was because I been watching your vid so long
Really beauty
Good logic .. learned something today
Really amazing solution
It always feels good to get one of these correct!
Really it was awesome
The fact, that we can take screenshot and share it is the best
Cream and toppings are mostly on the upper part of the cake, so how come they will get equal cream and toppings..?
Same doubt ,anybody here to clear it?
@@51_meehir_walkar80 only possible if the shown image is the top part of the cake.
@@devendrabisht3615 ooh, so basically , it was top view . I was assuming it's a side view.
Mind-blowing solution
Because I am an engineer I would cut off a thin slice from one end large enough to fill in the missing rectangle, then just cut directly down the middle.
My solution: First of all they will find it's center of mass, then no matter how they cut the cake (with a straight line), the cake will be divided into two equal parts( probably my solution is true).
It gives the same result... The center of mass of rectangle is its center (where diagonals meet). Take the original rectangle and the cut out part as an anti-rectangle and you will get the same line of suspension as joining the centers.
I am taking the initial rectangle without the cutout and the cutout part and treating it as a negative mass. Individually the center of masses are their respective centers
You can find the new center of mass along the cut line by balancing their torques...
Would love to know your ideas about proving the same. Maybe yours would be much simpler or I get something new to learn.
Actually no because a line through the center of mass would divide the cake to two parts with equal torques about the line but not equal masses
@@mohamedhusam8189 we can balance anything on the tip of a pin if we find it's center of mass. It means all mass is spread equally around the center of mass.
Then it should divide into two equal masses if we cut it along a line passing through it center of mass.
If we can make ourselves remember all the theorem of geometry, it is quite easy to solve such problems with little brain exercise.
👍🏽👍🏽
I come with another solution...
For normal rectangle a vertical straight cut from center will divide it into two equal parts
For this rectangle find area of small rectangular portion and shift vertical cut from center to add half of area of small rectangle. So, we can get two equal parts for remaining cake.
Little bit more complex 😅
That's precisely what I did too. May be he should have specified that we should not use any measuring device.
Still acceptable solution considering a practical case.
Additional assumptions: Cake does not melt while cutting and the cutting has to be done perpendicular to the surface the cake is placed on.
Really awesome puzzle... But I figured it out😊😉
Perfect :)
Me: you only get 1 cut...
Wife: knife is to kill Bob and put back the slice he cut.
Me: ...
Wife: if he cuts cake like that he deserves to die.
Me: yes dear. *goes hide the knives*
I was thinking about diagonal bt that was not cutting the bigger rectangle.
Bt the solution was just simple and amazing
It was very nice and good concept ☺️
Thanks
That IS good!
That's clever
Brilliant
Very nice
Cut plane from 1 corner of upper face to opposite corner of bottom face
Good logic.
Can we not just cut the cake in the centre of the big cube in relation to the z axis? That way the small cube cross section should be consistent for the depth of the cake.
But then the person receiving the bottom portion would receive no icing/toppings.
Using maths
1. Calculate the whole area of rectangle.
2. Calculate the area of rectangular hole.
3. Subtract area 2 from area 1.
4. Divide the above result by 2 which results to equal area for both people.
5. Divide the above area by width of old rectangle.
6. Slice the cake at a distance obtained above from any of the edges of the cake so that it is not disturbing the hole in the cake.
7. If this solution is tedious, follow the video solution.😅
This is a trick question. You require "magical" information about the "center" of unknown shapes. On a rectangular piece, the only "answer" is a cut from one corner to the other -- for which you don't need to know the center point. In your example TWO center points are required, that you DON'T KNOW.
Shapes are not unknown, they're both rectangles. And you can pin point the center of a rectangle easily without requiring any measuring devices. It's simply where the two diagonals cross each other. Even in a practical way, you can trace/identify diagonals with the straight edge of the knife and use toothpicks to mark where the centers are. It's not that big of a deal.
@@Guile21 First, they said the blank spot could be any shape -- so no, there is no way to find it's center. Secondly, in the practical sample they gave, there would be no good way to "draw two lines" to find the center of the big rectangle -- you are allowed ONE "cut" only.
Wow. So simple soln.
Logically Yours, that was awesome.
Enjoyed the solution more than the cake.
Wow.. nice one..Thanks for sharing
Solved this without using pen and paper (or actual cake) 😋
Center is the key!
How did you find the center?
superb👏👏👍
But the rule was that both wanted equal amounts of cream. Plz dont add those details if you dont intend to fulfill them.
You didn't discuss the punishment Bob received when they caught up with him
That's cool👍
I thought it was a riddle where you cut the cake in half from the side as it would be 3D.
What about the cream?? The green part doesn't have any cream. The 2nd rule is the cream should be equal.
Easy - give Bob a slap so he gives you back the piece he took, replace it in the cake then cut straight down the middle.
What if you cut the cake into the top half and bottom half? Like how the top half is where all the frosting is.
Bob has mutilated the cake enough, don't you start taking all the frosting or you'll both be banned from my parties in future...respect the cake! 😁
So cool
Can i divide rectangle into equal halves and make a small rectangle in other half
Not in one straight cut though. 😊
@@jessicataylor7174 but i can achieve result in 2 cuts
This problem is just a piece of cake
No, two pieces of cake
Just wow
slick!
Pet peeve: "criteria" is plural. "The only criteriON is..."
So jeremy and jame knows the centre of smaller rectangle
Is there any website for puzzles like this ?
🙏🙏🙏 🙏Thanks sir for uploading this i am your old subscribe 🙏🙏🙏🙏
Yes
Here annoying is not bob, infact its jeremy and Jane who wants exactly half. Lol. Anyways it was a nice puzzle.
What if we cut the diagonally so that both get equal topping as well as base portion
What if the cut is done on the edge?
Its wrong. The cut from the middle horizontally should also be accepted here, as the toppings are not distributed evenly.
Cream not distributed equally🙄
The real question is how tf BoB cut out the rectangular shape from a rectangular cake?
I think Bob was kinda stupid. The time it took him to cut it in the middle, he would have eaten half of the cake.
Since I could do it.. I don't know whether I've improved or the puzzle was easy bcz after everything seems easy
This one was unusually easy ...
Cream, not seemed to be equally shared.. please explain..
It is equally shared why do you think otherwise? The cream layer has the same two dimensional shape as the whole cake, and presumably approximately uniform thickness, so the same cut that splits the whole cake into two equal pieces will also cut the cream layer into two equal pieces.
The answer is, "as many times as you can".
Thats what the mom told her
pretty basic but can be tricky in an interview
That was an easy one
really?? I couldn't figure it out no matter how hard I tried.
I had to take a shower to solve this.