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.
Noticed that case as OK in description!
Why couldn't a negative size be valid? That would be a completely artificial restriction on the number of allowed
x
s befores
.44 people solved it with Bash (look at the top of the page).
oh ok. no worries mate. I thought you were hinting the kata could be hacked or something. I JUST hit publish on the Ruby translation and it's my first try translating to Ruby so I panicked a bit. Thanks for explaining.
uhh.. what?
I assume that you tried to solve this kata in Python. Use the standard integer division in Python (
//
):-57 // 36 == -2
and62 // 71 == 0
because the integer division in Python is Euclidean.I agree with you that the kata description should be improved because there are several possible definitions for the integer division operation.