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.
The Test cases were giving weird errors. I submitted and it was rigth.
Done. Thanks for the tip :)
Basic tests 1 and 9 are contradictory, if you pass one you can´t pass the other.
Test 1 says "[[]] should equal []" and test 9 says "[] should equal [[]]".
Fix it please
"Testing for [3, 14, 14]
It should work for random tests too: 401 should equal 76913"
Something is wrong in the Random Tests. 401 is the correct answer and it says otherwise.
nvm, it´s done.
Tests are running in 21ms but the Submit says over 6000ms. The code is O(N^2). Any help?
nvm. Did it. Is 2642ms good?
I think the problem is to find an efficient algorithm to find all the divisors. To find the divisors of 42 i go from 1 to 42 to find them. It has to be a better solution.
The Submit Tests must be too much hardcore for me. It says: "Process was terminated. It took longer than 6000ms to complete".
I cant optimize to do better than O(N^2). Any help?
Something is wrong with the Submit Tests. It shows ["1: G", ...] should equal ["1: 1: G", ...].