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.
a function returns None by default so you can reduce your code
random tests missing in coffeescript
.
.
.
.
Python:
assert_equals
should be usedPython: Needs random tests
Ruby: Needs random tests
Ruby:
assert_equals
should be usedFor C# a note should be added to the description that the Kata is expecting an exception to be thrown for negative values, not returning null.
Crystal and Haskell translations kumited
[The latter not really by me, I just fixed the conflicts]
@galafik, tnx for the nice factorial kata!
This comment is hidden because it contains spoiler information about the solution
I'm curious how much better recursion will fare with ES6 tail call optimization.
However, most of the current solutions won't benefit from that anyway due to
n * factorial()
actually being a math operation rather than a pure function callLoading more items...