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.
The line
return "" if words.empty?
is completely redundant here, as[].join(" ")
returns the same thing.It's a nice touch, but why include it if it essentially does nothing, right?
It's disabled and you've been warned in the description.
Can someone explain these exit code issues, even when it passes all tests:
Does it have to do with the tests that are written for these problems?
Retired.
Using Ruby, it will not use Array#count on arrays. I'm guessing this is using an old Ruby version. Error: Undefined method 'count' for ["a", "b", "b"].
A discussion proposing the retirement of this kata has been opened there: https://github.com/codewars/content-issues/issues/98
Feel free to join it.
The list of disabled methods is incomplete.
This was fixed.
Am I not allowed to use #sort? I got back this message error, test cases were ok!
group_and_count': undefined method
sort' for nil:NilClass (NoMethodError)from `
'
Thanks
Rodolfo
This comment is hidden because it contains spoiler information about the solution
Please, fix a small typo in description: not "and array" but "an array"
This comment is hidden because it contains spoiler information about the solution
I see. Thanks for making it clear. :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...