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.
And now you got a neat port in both Python and Ruby.
I also corrected a couple of typos ("funcionality" and "are passed") in the test.
Let me know if it is all ok :)
I agree. I thought the kata was bugged until I came to the discussions. At least add it to the list of cases being tested for...
@surtich: A port to python or ruby would not have this issue, since they have arbitrary precision integers.
Javascript is a poor language to do number theory kata in.
Thanks, very interesting resource.
I have been reviewing the results of my solution. I compared the results with other solutions and the results of this web page.
Is identical for all numbers less than 299. For larger numbers, each solution produces a different result which also differs from the result of the web page.
My guess is that JavaScript fails in arithmetic operations with big numbers.
I changed the test to a number less than 300.
I hope it helps!
According to http://www.numericana.com/data/partition.htm , it's neither of the two.
sum(330) = 73653287861850339