Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
No, this is the correct way to phrase it. You can only apply a break to one continuous piece at a time.
This is a good piece of info; wish it was stated in the problem description!
I agree, although these would probably be called "slices" rather than "breaks" since it's pretty hard to break multiple pieces at once. I would be interested to see a separate kata interpreting the problem in this manner.
I found this kata fun to engage with and actually solve. The fact that you can require 'matrix' to solve this in a few lines is a little disappointing, though.
This was a little too easy for a 5 kyu problem (or other 5 kyu problems are a lot harder).
This really should be the top rated answer.
This comment is hidden because it contains spoiler information about the solution
5! and 25! are important validation criteria and should be added to your test cases.
Do you think a baby that gestates in the last part of the year just goes away at the end of the year?
Do you think parts of people give birth?
At least for C, the random test are broken and are causing working algorithms to fail due to integer overflow.
This comment is hidden because it contains spoiler information about the solution
When I saw the top solution, I felt tricked.
The description of this kata is confusing. From the kata, I would expect a 3x4 bar of chocolate to require 5 breaks, and not 11.