Problem 42460. The cake is a lie...
You're hosting a birthday party with a large number of screaming children. Fortunately, you have a gigantic sheet cake in front of you that can be cut a large number of times. Given the number of kids at the party, find the minimum number of cuts you need to make to give all of them at least one piece. There can be pieces left over, but you need to make sure that everyone gets at least one piece. Fortunately, the pieces of cake don't have to be the same size.
Good luck!
Solution Stats
Problem Comments
-
4 Comments
You're half right: the cuts have to be straight. The cake is 3-D, though. Assume the cake is a rectangular solid, and all cuts are planar.
thanks for the clarification!
death^H^H^H^Hservings by a thousand cuts
Solution Comments
Show commentsProblem Recent Solvers25
Suggested Problems
-
Swap the first and last columns
21121 Solvers
-
Return the 3n+1 sequence for n
8352 Solvers
-
Project Euler: Problem 5, Smallest multiple
1505 Solvers
-
Check if number exists in vector
12360 Solvers
-
Is this triangle right-angled?
5990 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!