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.
Parameters should be provided in initial solution setup
Preloaded code should use
let
instead ofvar
Can you make description language-agnostic in the meantime ?
Input mutation can happen in random tests
Can you make description language-agnostic in the meantime ?
Description should be language-agnostic
Fixed in this fork
Description should be language-agnostic
solution sharing != kata suggestion. Also please do not post solution in discourse
Approved
OP solved it, closing
Not a kata issue ...
Yes, the comments are referencing limitation of runtime in CW, which is bounded to 12 seconds.
However, you could always find the product while doing the recursion or iterative stack for partitioning. Also, you may store previously computed value of
n
using memoization technique ...This kata was published long time ago, back then the userbase was not known... Also the author published the kata, not CodeWars official, so they would not know how the audience distribution would look like, statistically speaking ~~
OTOH, apart from Lua and Python, numbers ranging from 0 up to 10K or less should be tested too in the random tests with even distribution, not just in fixed and sample tests
All languages
1
up to99
Description
should be language agnostic
should use KaTeX for equations
Loading more items...