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.
This comment is hidden because it contains spoiler information about the solution
Lua translation !
The one who downvoted the kata (
Voile
?t3l3f00n
?mortonfox
?) - would you please let me know why you were so unsatisfied? I could perhaps improve the kata using your feedback.This comment is hidden because it contains spoiler information about the solution
For Java, I think there an un-tested edge case which I saw happen very rarely in the random tests.
When the final byte(s) of the data are spaces (0x20) it seems the RHS text part is not supposed to be trimmed (for those bytes).
In other words, there is a subtle un-tested distinction between spaces which should be trimmed (when last line > bytes) and spaces which should not be trimmed (when last data is 0x20)....
In Ruby bytes are counted instead of characters (assuming the source is in UTF-8 by default).
The kata linked in the description already has golfed solutions.
This comment is hidden because it contains spoiler information about the solution
Python sample tests require rounding, while final tests do not (maybe the same in Ruby).
I think there is some problem with this kata. I don't round the result but passed all the tests.
Hi,
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution