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
I love the (unintentional?) pun of using
#pop
to "kill" the array member :DAn even plus an odd integer will always return odd.
Just think of it. A pencil and a paper can help you.
This is a concise answer. but i thought it said, if one is even and the other is odd, they are in love. can someone explain how this code works
thanks!
This does not preseve whitespace.
" this is wrong"
should arguably still include a leading space (as said by babakgh)"this [space space space] is wrong"
should arguably still have multiple spaces between 'this' and 'is'EDIT: Aparently codewars also doesnt preserve multiple whitespace even in
code
blocks, but hopefully its clear what I meanThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Fails with this " this is wrong "
Love it!
Wow, this is a clever way to use the send mehtod!!!
test this:
I say "go"
It won't work
it's a very neat and idiomatic code but as the pattern you capitalize is defined in split, it is not robust nor flexible at all.
Wow, this solution is so clever. :))
Then you displays a validation error until the user types without any errors.
I agree: "Ghost objects are given a random color attribute"
The color is an "attribute" of the object. So it should not change with each call to
color
.Loading more items...