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.
I checked that exact case against the reference solution, and it returned
false
. You may have copied the inputs from the test before or after the fail, but I cannot believe this test did occur. It would have expectedfalse
.Closing.
There's an algorithm called Fermat's factorization method that you can look up on Wikipedia.
One of the randomly generated test cases I was given was this:
([3, 2], [-10, 8], [-7, 2], [0, 3], true)
which is not correct.