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.
Description should be language-agnostic
does not specify wether the sorting can/should mutate the input array (like the builtins in Python and JS) or return a new instance
Node 12 should be enabled
assert.strictEqual
should be usedA minor typo in the description:
we will not get number that can be divide[D] by 5
CoffeeScript translation
The description is absolutely terrible. An example is not a specification - and especially an example which is literally gibberish.
There's an earlier kata that had us dissecting email addresses. I'm too lazy to find it and see if this is a duplicate or not, but that one suffered from the same issue Voile has with this one:
Email addresses are fscking impossible to dissect.
This kata seems limited to returning the part after the last
"@"
, which is a huge simplification of actual email addresses.That's OK, but it should be specified, not just illustrated with some arbitrary and necessarily incomplete examples, and you might as well leave "email address" out of it entirely.
Please do your homework yourself ;-)
This comment is hidden because it contains spoiler information about the solution
Im' really uncomfortable with what ZED is suggesting, as I told you about on the gitter channel... :/
other than that, specs are incomplete:
Needs Random Tests.
Let me guess, you are trying to solve your homework or something by posting it on CW, right?
Also you forgot to remove the dummy JS version.
@Belia: looking at the solution page, it seems there is a big problem, right now.
Needs edge cases such as
int[] t = new int[] {0, 0, 0, 0, 0 ,3 ,0 ,0 ,0 ,0 ,0 ,10 ,0 ,0 ,0 ,0 ,0 ,0 ,3 ,0 ,0 ,0 ,0 ,0, 0};
Did you accidentally click the publish button?
(JS, possibly others)
Would not an
Object
be a more appropriate datatype forsolution
? Also, should not the numbers in there be actualNumber
s, instead ofString
s? You're using the values as numbers after all.Loading more items...