Ad
  • Custom User Avatar

    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 :)

  • Custom User Avatar

    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...

  • Custom User Avatar

    @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.

  • Custom User Avatar

    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!

  • Custom User Avatar

    According to http://www.numericana.com/data/partition.htm , it's neither of the two.
    sum(330) = 73653287861850339