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.
to converted to number
removed negative numbers from conditions and tests
The better fix would be using
BigInt
s. ( The even better fix of also using negative odd numbers would require rationals, which unfortunately JS does not have natively. )Sure, the definition of double factorial can be extended to give results for negative odd numbers.
Ask for all of those, or none of those, not just
-1 -> 1
.ETA: asking for all of 'em may be different enough to normal factorials that it would not be retired.
yeh, now fixed
Initial code has not been fixed.
fixed
double_factorial
is a Python method name,doubleFactorial
is more suited for JSKeep in mind this kata would likely be retired due to low user satisfaction. A kata should add something new. Double factorial is just a very minor variation on factorial.
fixed
Your numbers are too big to be precise.
I'm sure this should be obvious but what does the + operator do in this return statement?
bro, how did you pass the tests????
If my mistakes have been corrected, when can I publish my kata?
Loading more items...