Retired
master_pizza_slicer (retired)
10daveaneo
Loading description...
Geometry
Puzzles
Mathematics
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Like a few other kata I've seen, this is as much a math problem as a coding one. Unlike those, the math problem here is complicated and hard - the square pizza algorithm requires factoring n, which gets much harder as n increases. In combination with the large test numbers and the runtime limit, it becomes a "how many optimization tricks do you know" problem more than a math problem.
As-is, this is more difficult than I think it really needs to be. Depending on the difficulty level you're aiming for, I would recommend either:
Additonal suggestions:
Thank you for the feedback. I appreciate the thought and detail you put into it.
Random test inputs should be generated on the fly, not a bunch of already determined numbers.
Updated. Thank you.
Instruction is very under-specified. How are the numbers come up? How are the cuts made? Are we allowed to make a cut from edges formed by previous cuts?
Without these actual explanations (dumping examples without context isn't explanation), the kata is more of a guesswork than anything.
Thanks for the feedback. As I understand it, there is only one way to cut the pizzas to make them have equal slices. If you have examples where there are multiple ways to create equal slices, please let me know, and I will try to add more explanation to parse those out. I have updated my instructions to avoid any clever pizza cutting, if that is what you had in mind. If it's still unclear, please let me know.
Instructions updated.