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
There's an algorithm called Fermat's factorization method that you can look up on Wikipedia.
You can use ESLint or Prettier to achieve this format.
getSize(4,2,6) returns [88,48]
when getSize(4,2,6)[1] refers to [88,48][1] = 48, test case refering to ouput index value.
This comment is hidden because it contains spoiler information about the solution
No, you're not, check in Solutions, there are more that used it too. Note that's not the best approach.
Why not a
for
loop? :D https://www.codewars.com/kumite/57cab2bbfa9fc5df340007d6?sel=5d6946c80725d3001fb10eb1This comment is hidden because it contains spoiler information about the solution