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.
Technically, all translations are now using that formula (some of them are abs() < 1e-N, others have built-in test methods, but that's another story), therefore, this suggestion may be resolved
To be fair I mainly follow PEP8 because it's a good (imo) way to make my code more readable
In my defence, this is the first time I've ever heard of PEP-8.
here we go again, not following PEP-8
would someone mind explaining as to how lambda is used in this as well as what reduce does?.
much appreciated.
I don't know if your code is correct, but you must find a way to do the calculation without computing
n!!
, because this is a very expensive operation; moreover in some languages (like JS) ordinary numbers cannot hold such huge values (which may be the reason of your code failure).This comment is hidden because it contains spoiler information about the solution
c++ translation???
Both approved, thanks.
Can't to approve due to a conflict in the description.
Forks with the correct description for COBOL and Go.
Oh god. I think it isnt 7 kyu
C Translation (author inactive).
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/197.
Please join the discussion to help us identify duplicate kata and retire them.
Loading more items...