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.
If your code times out your code does not "work" or "run fine".
If you do it with math rather than building a larger Array each time you can manage it.
This is because you are using inefficient algorithm, guys. Try to find an algo that will manage the task within 6 seconds.
I get the same error in c# I pass 16 tests fine then timeout on what seems to be the final test. Code runs fine in VS2013
I have the same issue in Ruby. I'm assuming that you (AlexIsHappy) give a very large 'r' in one of the tests, but the way codewars is setup the code just times out after ~6 seconds. Are you trying to get us to come up with a way to process very large numbers in a short period of time, or does the test need to be rewritten?