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.
If by "hacked" you mean a solution will fail on a perverse case, this is not an issue. It's hard enough to pass average cases.
Closing.
I have tried it on my computer and it works, but I don't know why it doesn't work on the OJ.
Lua translation!
This comment is hidden because it contains spoiler information about the solution
like this:
longer pieces are not valid because they would contain some separations.
EDIT: sidenote: I see you didn't solve the easy version yet. If you plan to solve the present one first, don't post the same solution in the easy version. Prune out the irrelevant parts of the code first, thx.
What will happen for the shape below?
It can be spilt to four
centainly. But which one should
be regarded as, one
or two
?
I'd love to know why it works.
I thought your code is similar to mine.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
There are only 3 languages for this kata, either wait for someone else to add C++ or translate it yourself. Not a kata issue.
Where c++ is not supported for this kata?
I have to say my code is ugly.
Same idea with mine.
This comment is hidden because it contains spoiler information about the solution