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
4-liner, cheating on whitespace doesn't count.
Use spoiler flag.
This comment is hidden because it contains spoiler information about the solution
The negative sign is not a digit, it is just a sign, therefore it shouldn't make a number to win
You should considere it the other way around:
if mutation isn't explicitly allowed, it's forbidden
;)Errrr... Looking at it again, it's actually a pretty bad method! X-D
Mutation of the input. Pretty bad. Hopefully, I just did a second fork. This one would be worth the "best practices" the original solution earned (even if longer). ;)
Thx
(actually, the fork is faaaar better. ;) )
And another one here :-)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
yes
EDIT: "one liner" in O(N) here (for fun)