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.
This comment is hidden because it contains spoiler information about the solution
I'm not sure it's feasible to do on Codewars. The methods, derived from Dixon method, would only be effective for large numbers (let's say, above 64 digits), for smaller numbers other methods (such as https://en.wikipedia.org/wiki/Shanks%27s_square_forms_factorization) are faster.
Factorizing something like
2^64
would not fit into Codewars 12s test suite, whereas if I take smaller numbers, users may exploit faster methods to achieve the same task.Don't worry, I am not working as a programmer, and probaby I will not again :D
approved at some point
This comment is hidden because it contains spoiler information about the solution
Your implementation of the random tests makes it possible for the function to be passed no arguments, which contradicts the description.
The function is annotated with
tuple[int, int, int, int]
, but you expect alist[int]
in the tests. Please change the tests to expect atuple
.If they're not flagged as spoiler, then yes, everyone can see them, here and in the homepage.
ever heard of the Spoiler button? :/
Nevermind
This comment is hidden because it contains spoiler information about the solution
You should use BigInt in javascript
Which solution should be used as reference solution (which is fastest)?
performance constraints locked :)
Interesting one, the math behind this kata escaped me :)
Loading more items...