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.
i first thought of this but mine takes less time
Beautiful!
It's actually very simple. If you don't know how the code works, try to follow it through a few examples, then everything should be clear. There are a few tricks used here.
Tried this and dunno why I ended using .format() instead becaus I had an error pointing the "f". I just tried again now and it didn't appeared.
The other "problem" was due the order of if-elif, being conscient of it I used != 1 or -1 instead. Not best practices, but...
the last line looks kinda cryptic for me
but the solution looks cool actually
The test constraints work perfectly. Thats why solutions without those unnecessary checks pass.
i'm feeling like some retarded, lmao :D
I love it!
I just wanted to say that building applications that are resistant to unexpected user use requires writing more code.
You're telling me that undefined behaviour in a system is... undefined? Shocking.
How many fewer lines of code would we have if users typed what we wanted? ๐
This is the first correct answer I've seen! The test constraints on this Kata are obviously broken.
This comment is hidden because it contains spoiler information about the solution
Yes, you're right, although I thought I was just giving an idea.
what about not forgetting the spoiler flag...?
Loading more items...