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.
Lol, lgtm
Why "+9" ?
Have you read the descriptions?
What is number & base here?
Fixed.
It doesn't count. The Test6 won't fail without considering the negative sign either. The instruction says "If two numbers in the argument array have the same number of digits, return the first one ..." In Test6 that is the case.
This was super fun, and I learned a lot! Thank you!
My tip to anyone doing the java version: Just don't.
What I stumbled upon:
Input words:
wqlq, mq, lb, , jt, e, fo, ej{, lhd, u
expected:
wqlq, mq, lb, [jt, e, fo, ej{, lhd and ]u
Now mysteriously
[
and]
characters appear out of nowhere?Can't be bothered with it.
This hasn't been fixed for Java, so I'm writing this for anyone confused why they're failing the randomTests:
If the last word in the list has a '{' character in it, then the last two words will have a ',' between them instead of "and".
The writer for the Java translation said they can't edit it anymore...
The comments aren't very helpful...
For Java, exampleTest6 fails if the negative sign is not counted as a digit, but randomTests fails if the negative sign is counted.
Does the negative sign count as a digit or not?