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 is contradictory, claims that
n
is both always even but also provides a prescribed return value for whenn
is odd. Python at least also tests for oddn
which likely should be removed.Also test cases are vulnerable to simply importing your refsol from them since it isn't even private and uses the most obvious name possible.
No random tests, not using top level function declaration. Rejected.
No random tests, no top level function declaration. Rejected.
Please stop making these. You're making more work for me to fix if someone approves one.
No random tests, doesn't use top level function declaration. Rejected.
This comment is hidden because it contains spoiler information about the solution
Scala translation
Java possesses
Option
in its stdlib iirc.Did you do it in the editor or? The latest forks for most have the empty array test still.
@trashy_incel claims fixed for all languages, if not then please reraise.
Fixed in fork, and made description prose slightly better.
This comment is hidden because it contains spoiler information about the solution
CoffeeScript translation
Chai + assert for CoffeeScript
Loading more items...